Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Need help figuring out how to setup some models...
Post Body

Hey!

So I've a project where I need to create a relationship between a Survey and a bunch of Samples.

I decided to use a ManyToMany relationship between Survey and Samples because the Samples are referenced in other surveys.

Now, the problem is that the Samples can be of various types (Core, Bags, etc) which requires a very different set of descriptions according to sample_type. I could just create a Description model, add all the fields I need regardless of sample type and allow them to be set blank. Maybe even hide blank fields with JS when doing forms. But surely, there must be a better way to do this than to have ~5 blank fields set when the sample is not a Core.

Thanks in advance.

Author
Account Strength
90%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,158
Link Karma
22
Comment Karma
1,136
Profile updated: 1 day ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago