mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 01:28:42 +02:00
feat(transactions): make deleted_at readonly on admin
This commit is contained in:
@@ -19,15 +19,16 @@ class TransactionModelAdmin(admin.ModelAdmin):
|
|||||||
list_filter = ["deleted", "type", "is_paid", "date", "account"]
|
list_filter = ["deleted", "type", "is_paid", "date", "account"]
|
||||||
|
|
||||||
list_display = [
|
list_display = [
|
||||||
"deleted",
|
"date",
|
||||||
"description",
|
"description",
|
||||||
"type",
|
"type",
|
||||||
"account__name",
|
"account__name",
|
||||||
"amount",
|
"amount",
|
||||||
"account__currency__code",
|
"account__currency__code",
|
||||||
"date",
|
|
||||||
"reference_date",
|
"reference_date",
|
||||||
|
"deleted",
|
||||||
]
|
]
|
||||||
|
readonly_fields = ["deleted_at"]
|
||||||
|
|
||||||
actions = ["hard_delete_selected"]
|
actions = ["hard_delete_selected"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user