re-order fields in Document model for better admin
This commit is contained in:
parent
4a2217c528
commit
edd8ceb858
1 changed files with 1 additions and 1 deletions
|
@ -34,9 +34,9 @@ class DocumentManager(models.Manager):
|
||||||
|
|
||||||
class Document(SoftDeletableModel):
|
class Document(SoftDeletableModel):
|
||||||
title = models.CharField(max_length=512, null=False, blank=False)
|
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)
|
author = models.CharField(max_length=512, null=False, blank=True)
|
||||||
published = models.CharField(max_length=128, 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)
|
external_url = models.URLField(null=True, blank=True)
|
||||||
file = models.FileField(null=True, blank=True, storage=FileSystemStorage(location='docs'))
|
file = models.FileField(null=True, blank=True, storage=FileSystemStorage(location='docs'))
|
||||||
public = models.BooleanField(default=True, null=False, blank=False)
|
public = models.BooleanField(default=True, null=False, blank=False)
|
||||||
|
|
Loading…
Reference in a new issue