From 516e7a04ad0f2ed5c47a77ae0b85996c0f7250dc Mon Sep 17 00:00:00 2001 From: reverend Date: Tue, 22 Sep 2020 20:10:03 +0200 Subject: [PATCH] More documentation --- django_lostplaces/lostplaces/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/models.py b/django_lostplaces/lostplaces/models.py index 049999e..e56e358 100644 --- a/django_lostplaces/lostplaces/models.py +++ b/django_lostplaces/lostplaces/models.py @@ -57,7 +57,8 @@ class Taggable(models.Model): class Mapable(models.Model): ''' This abstract model class represents an object that can be - displayed on a map. + displayed on a map. Subclasses have to provide absolute urls, + see https://docs.djangoproject.com/en/3.1/ref/models/instances/#get-absolute-url ''' class Meta: abstract = True