diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py index 16b53da..a15a7e6 100644 --- a/django_lostplaces/lostplaces/models/models.py +++ b/django_lostplaces/lostplaces/models/models.py @@ -14,6 +14,7 @@ from django.db.models.signals import post_save from django.dispatch import receiver from lostplaces.models.abstract_models import Expireable +from lostplaces.models.place import Place class Explorer(models.Model): """ @@ -27,6 +28,8 @@ class Explorer(models.Model): related_name='explorer' ) + favorite_places = models.ManyToManyField(Place, related_name='favorite_places', verbose_name='Explorers favorite places') + def __str__(self): return self.user.username