From 981c440ce3d92ceab479728598839958022847b0 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 24 Dec 2020 15:13:31 +0100 Subject: [PATCH] Fix voucher class description --- django_lostplaces/lostplaces/models/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py index 16b53da..cbdfb66 100644 --- a/django_lostplaces/lostplaces/models/models.py +++ b/django_lostplaces/lostplaces/models/models.py @@ -41,11 +41,13 @@ def save_user_profile(sender, instance, **kwargs): class Voucher(Expireable): """ - Vouchers are authorization to created_when = models.DateTimeField(auto_now_add=True) - expires_when = models.DateTimeField()kens to allow the registration of new users. + Vouchers are authorization tokens to allow the registration of new users. A voucher has a code, a creation and a deletion date, which are all positional. Creation date is being set automatically during voucher creation. + + created_when = models.DateTimeField(auto_now_add=True) + expires_when = models.DateTimeField() """ code = models.CharField(unique=True, max_length=30)