From 56f8e3bcf731fc6b28b2814e9879bcc32cf13dba Mon Sep 17 00:00:00 2001 From: Daniel Diaz Date: Tue, 25 May 2021 23:08:03 -0500 Subject: [PATCH] Modified models --- config/photoapp/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/photoapp/models.py b/config/photoapp/models.py index bdcdb63..68ed932 100644 --- a/config/photoapp/models.py +++ b/config/photoapp/models.py @@ -18,4 +18,7 @@ class Photo(models.Model): submitter = models.ForeignKey(get_user_model(), on_delete=models.CASCADE) - tags = TaggableManager() \ No newline at end of file + tags = TaggableManager() + + def __str__(self): + return self.title \ No newline at end of file