Test and cover treasury app
This commit is contained in:
parent
b6847415b5
commit
c03c18e93a
20 changed files with 438 additions and 31 deletions
|
|
@ -24,9 +24,7 @@ class RemittanceAdmin(admin.ModelAdmin):
|
|||
list_display = ('remittance_type', 'date', 'comment', 'count', 'amount', 'closed', )
|
||||
|
||||
def has_change_permission(self, request, obj=None):
|
||||
if not obj:
|
||||
return True
|
||||
return not obj.closed and super().has_change_permission(request, obj)
|
||||
return not obj or (not obj.closed and super().has_change_permission(request, obj))
|
||||
|
||||
|
||||
@admin.register(SogeCredit, site=admin_site)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue