Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
MatvijSafonov committed Dec 11, 2024
1 parent 15fa7b9 commit b4bae52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cinema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def __str__(self):
class Movie(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
actors = models.ManyToManyField(Actor)
genres = models.ManyToManyField(Genre)
duration = models.DurationField()
duration = models.IntegerField()
actors = models.ManyToManyField("Actor", related_name="movies")
genres = models.ManyToManyField("Genre", related_name="movies")

def __str__(self):
return self.title

0 comments on commit b4bae52

Please sign in to comment.