Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Stekloduv committed Oct 29, 2024
1 parent 3d38cb1 commit 26b27df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def __str__(self):
class Movie(models.Model):
title = models.CharField(max_length=255)
description = models.CharField(max_length=255)
genres = models.ManyToManyField(Genre, related_name='movies')
genres = models.ManyToManyField(Genre, related_name="movies")
actors = models.ManyToManyField(Actor, related_name="movies")
duration = models.IntegerField()

0 comments on commit 26b27df

Please sign in to comment.