So I have 2 models, like this:
class Movie(models.Model):
# some fields here
class MovieGenre(models.Model):
movie = models.ForeignKey(Movie)
genre = models.CharField(max_length=256, choices=MOVIE_GRENRES)
This is my model admin:
class MovieAdmin(admin.ModelAdmin):
fields = ['title', 'description', 'publish_date', 'file_1080p', 'thumbnail']
What I want to do is to let people add Movie
models in the admin page, selecting the genres from the list (there are 6 genres) as a checkbox or something similar. So I don't create 2 different pages to add both movies and genres.
Thanks!