Commit b672304b authored by Janelle Co's avatar Janelle Co

Fixed local destination issue.

parent 5d6ce8a3
......@@ -19,11 +19,11 @@ class Sched_CrewAdmin(admin.ModelAdmin):
class ScheduleAdmin(admin.ModelAdmin):
model = Schedule
list_display = ('Sched_Code', 'Flight_Date', 'Departure_Time', 'Arrival_Time', 'Duration', 'Flight_Cost', 'Flight_Code')
def get_readonly_fields(self, request, obj=None):
if obj:
return ['Departure_Time', 'Flight_Date', 'Arrival_Time', 'Duration']
else:
return []
# def get_readonly_fields(self, request, obj=None):
# if obj:
# return ['Departure_Time', 'Flight_Date', 'Arrival_Time', 'Duration']
# else:
# return []
class CityAdmin(admin.ModelAdmin):
model = City
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment