In 5th grade when we learned how to outline a research paper, our teacher taught us that you should never have a single bullet point. I feel like I am breaking this rule, and there might be a better way.
I have model, Movie
, which has fields like title
and year
. I want to also include genre
. However, movies can fall into more than one genre. So I feel like I need to have a many-to-many relationship. But I don't really want to make Genre
it's own model class, because there would only be one field, Genre.genre
. It seems wrong to me. I know I could have genre be a CharField and separate genres with some sort of a separator sentinel, ie action|adventure|comedy
. But is that the best way to do it?
I am planning to run raw SQL queries against this database, so simplicity is of high value right now.