From edd8ceb858edd631fb004dbce2bb3504a63377df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 29 Mar 2020 11:41:28 +0200 Subject: [PATCH] re-order fields in Document model for better admin --- sdbs_pile/pile/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdbs_pile/pile/models.py b/sdbs_pile/pile/models.py index 5492165..802d7df 100644 --- a/sdbs_pile/pile/models.py +++ b/sdbs_pile/pile/models.py @@ -34,9 +34,9 @@ class DocumentManager(models.Manager): class Document(SoftDeletableModel): title = models.CharField(max_length=512, null=False, blank=False) - description = models.TextField(null=False, blank=True) author = models.CharField(max_length=512, null=False, blank=True) published = models.CharField(max_length=128, null=False, blank=True) + description = models.TextField(null=False, blank=True) external_url = models.URLField(null=True, blank=True) file = models.FileField(null=True, blank=True, storage=FileSystemStorage(location='docs')) public = models.BooleanField(default=True, null=False, blank=False)