From 916c4b80f7900567860bcbecc214eb325cc0d7b9 Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 24 Dec 2020 16:42:27 +0100 Subject: [PATCH] Filed not required in django admin --- django_lostplaces/lostplaces/models/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py index 49c1000..8c87ae1 100644 --- a/django_lostplaces/lostplaces/models/models.py +++ b/django_lostplaces/lostplaces/models/models.py @@ -31,7 +31,8 @@ class Explorer(models.Model): favorite_places = models.ManyToManyField( Place, related_name='favorite_places', - verbose_name='Explorers favorite places' + verbose_name='Explorers favorite places', + blank=True ) def __str__(self):