Addid visited_places system. (mostly copy&paste) :P

This commit is contained in:
2020-12-25 19:32:54 +01:00
parent 067bf36118
commit 6b7c71ef30
7 changed files with 65 additions and 9 deletions

View File

@@ -62,6 +62,12 @@ class Explorer(models.Model):
verbose_name='Explorers favorite places',
blank=True
)
visited_places = models.ManyToManyField(
Place,
related_name='explorer_visits',
verbose_name='Explorers visited places',
blank=True
)
def __str__(self):
return self.user.username