diff --git a/TODO b/TODO index f202c49..c34b962 100644 --- a/TODO +++ b/TODO @@ -13,11 +13,11 @@ There should maybe also a way to handle mails later if first delivery failed. - there are some issues with the ifg_volunteer_mail.txt template. +- project.pk generation fails at the moment (seond save() in old code) + other known problems: - The DatePicker works only if you are logged in, which is mostly ok for /intern and there is no Date to insert at the moment in forms for externs. - we should add dates to the outputs, to make it more useful in logfiles - -- maybe change logo in browser dark mode to https://upload.wikimedia.org/wikipedia/commons/2/2a/Wmde_logo_vert_weiss.png diff --git a/input/admin.py b/input/admin.py index 48c3af7..29e35e4 100644 --- a/input/admin.py +++ b/input/admin.py @@ -29,7 +29,7 @@ admin.site.add_action(export_as_csv) @admin.register(Project) class ProjectAdmin(admin.ModelAdmin): save_as = True - readonly_fields = ('pid',) + readonly_fields = ('pid','finance_id','project_of_year') # action = ['export_as_csv'] diff --git a/input/forms.py b/input/forms.py index 8e8f227..826898b 100644 --- a/input/forms.py +++ b/input/forms.py @@ -21,7 +21,7 @@ class ProjectForm(FdbForm): class Meta: model = Project - exclude = ('pid', 'granted', 'granted_date', 'realname', 'email',\ + exclude = ('pid', 'project_of_year', 'finance_id','granted', 'granted_date', 'realname', 'email',\ 'end_mail_send', 'status', 'persons', 'survey_mail_date') widgets = {'start': AdminDateWidget(), 'end': AdminDateWidget(),}