From 88bffbef8eebc6bd77e87e7cece9cbe45c99a984 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 24 Dec 2020 18:53:30 +0100 Subject: [PATCH] Added Explorer bio / description field. --- django_lostplaces/lostplaces/models/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py index 5b9b986..7f3f6c4 100644 --- a/django_lostplaces/lostplaces/models/models.py +++ b/django_lostplaces/lostplaces/models/models.py @@ -40,6 +40,12 @@ class Explorer(models.Model): on_delete=models.CASCADE, related_name='explorer' ) + bio = models.TextField( + blank=True, + null=True, + verbose_name=_('Biography / Description'), + help_text=_('Describe yourself, your preferences, etc. in a few sentences.') + ) profile_image = ThumbnailerImageField( blank=True, null=True, @@ -49,7 +55,6 @@ class Explorer(models.Model): verbose_name=_('Profile image'), help_text=_('Optional profile pic for display in explorer profile') ) - favorite_places = models.ManyToManyField( Place, related_name='favorite_places',