From 4370292c55083bbf6ccdce82405ce7b498cc9fef Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Tue, 19 Aug 2025 14:10:36 +0200 Subject: [PATCH] fixed read only fields of travel admin --- input/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/input/admin.py b/input/admin.py index 3345d23..4057fc7 100755 --- a/input/admin.py +++ b/input/admin.py @@ -103,9 +103,8 @@ class TravelAdmin(admin.ModelAdmin): list_display = ('realname', 'service_id', 'granted', 'granted_date', 'project_end', 'project', 'project_end_quartal') list_display_links = ('realname', 'project') date_hierarchy = 'project_end' - readonly_fields = ('project_end_quartal', 'project_end') autocomplete_fields = ['project'] - readonly_fields = ['service_id'] + readonly_fields = ['service_id', 'project_end', 'project_end_quartal'] class Media: js = ('dropdown/js/otrs_link.js',)