change "paid" field to readonly in django admin
This commit is contained in:
parent
add35068af
commit
5fe157a868
|
@ -41,6 +41,7 @@ class TicketInline(admin.TabularInline):
|
|||
@admin.register(models.Order)
|
||||
class OrderAdmin(admin.ModelAdmin):
|
||||
change_form_template = 'admin/change_order_form.html'
|
||||
readonly_fields = ('paid',)
|
||||
|
||||
def get_email(self, obj):
|
||||
return obj.user.email
|
||||
|
|
Loading…
Reference in a new issue