Skip to content

Commit

Permalink
admin: articles - add read only fields for created, updated
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Jul 18, 2024
1 parent ac49752 commit d01ee34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scoap3/articles/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ class ArticleAdmin(admin.ModelAdmin):
"report__check_doi_registration_time",
"report__check_authors_affiliation",
]
readonly_fields = [
"_created_at",
"_updated_at",
]
inlines = [ArticleAuthorsInline, ArticleComplianceReportInline]

@admin.display(description="Journal")
Expand Down

0 comments on commit d01ee34

Please sign in to comment.