new autogenerated fields shown in admin but not in form

This commit is contained in:
Benni Bärmann 2021-10-04 15:45:51 +02:00
parent e28aca4313
commit 35bbd4b8a7
3 changed files with 4 additions and 4 deletions

View File

@ -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.
- 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

View File

@ -29,7 +29,7 @@
class ProjectAdmin(admin.ModelAdmin):
save_as = True
readonly_fields = ('pid',)
readonly_fields = ('pid','finance_id','project_of_year')
# action = ['export_as_csv']

View File

@ -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(),}