mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Add field 'added' to documents
This field indicates when the document was added to the database
This commit is contained in:
parent
52b32fddc9
commit
11db87fa11
4 changed files with 41 additions and 9 deletions
|
|
@ -229,6 +229,8 @@ class Document(models.Model):
|
|||
default=timezone.now, db_index=True)
|
||||
modified = models.DateTimeField(
|
||||
auto_now=True, editable=False, db_index=True)
|
||||
added = models.DateTimeField(
|
||||
default=timezone.now, editable=False, db_index=True)
|
||||
|
||||
class Meta(object):
|
||||
ordering = ("correspondent", "title")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue