|
|
@ -73,7 +73,7 @@ class GiftCodeUserAdmin(admin.TabularInline):
|
|
|
|
return format_html('<a href="{}">{}</a>', change_url, object.code.code)
|
|
|
|
return format_html('<a href="{}">{}</a>', change_url, object.code.code)
|
|
|
|
code_link.short_description = 'Code'
|
|
|
|
code_link.short_description = 'Code'
|
|
|
|
|
|
|
|
|
|
|
|
def has_add_permission(self, request):
|
|
|
|
def has_add_permission(self, request, obj):
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
def has_delete_permission(self, request, obj=None):
|
|
|
|
def has_delete_permission(self, request, obj=None):
|
|
|
|