Skip to content

Commit 77ecf7c

Browse files
committed
add "unique = true" clause to games showcase model
1 parent 050a2dc commit 77ecf7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/game_dev/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __str__(self):
6969

7070

7171
class GameShowcase(models.Model):
72-
game = models.ForeignKey('Game', on_delete=models.CASCADE, related_name='game_showcases')
72+
game = models.ForeignKey('Game', on_delete=models.CASCADE, related_name='game_showcases', unique=True)
7373
description = models.TextField()
7474

7575
def __str__(self):

0 commit comments

Comments
 (0)