From 02a566c129da7fd4aa51c2c83e5be8af980171bd Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sun, 26 Jun 2016 16:13:09 +0200 Subject: [PATCH] Use constant only caps for constants --- cas_server/admin.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cas_server/admin.py b/cas_server/admin.py index bfa5a73..a6a9be4 100644 --- a/cas_server/admin.py +++ b/cas_server/admin.py @@ -14,9 +14,9 @@ from .models import ServiceTicket, ProxyTicket, ProxyGrantingTicket, User, Servi from .models import Username, ReplaceAttributName, ReplaceAttributValue, FilterAttributValue from .forms import TicketForm -tickets_readonly_fields = ('validate', 'service', 'service_pattern', +TICKETS_READONLY_FIELDS = ('validate', 'service', 'service_pattern', 'creation', 'renew', 'single_log_out', 'value') -tickets_fields = ('validate', 'service', 'service_pattern', +TICKETS_FIELDS = ('validate', 'service', 'service_pattern', 'creation', 'renew', 'single_log_out') @@ -25,8 +25,8 @@ class ServiceTicketInline(admin.TabularInline): model = ServiceTicket extra = 0 form = TicketForm - readonly_fields = tickets_readonly_fields - fields = tickets_fields + readonly_fields = TICKETS_READONLY_FIELDS + fields = TICKETS_FIELDS class ProxyTicketInline(admin.TabularInline): @@ -34,8 +34,8 @@ class ProxyTicketInline(admin.TabularInline): model = ProxyTicket extra = 0 form = TicketForm - readonly_fields = tickets_readonly_fields - fields = tickets_fields + readonly_fields = TICKETS_READONLY_FIELDS + fields = TICKETS_FIELDS class ProxyGrantingInline(admin.TabularInline): @@ -43,8 +43,8 @@ class ProxyGrantingInline(admin.TabularInline): model = ProxyGrantingTicket extra = 0 form = TicketForm - readonly_fields = tickets_readonly_fields - fields = tickets_fields[1:] + readonly_fields = TICKETS_READONLY_FIELDS + fields = TICKETS_FIELDS[1:] class UserAdmin(admin.ModelAdmin):