new autogenerated fields shown in admin but not in form
This commit is contained in:
		
							parent
							
								
									e28aca4313
								
							
						
					
					
						commit
						35bbd4b8a7
					
				
							
								
								
									
										4
									
								
								TODO
								
								
								
								
							
							
						
						
									
										4
									
								
								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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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']
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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(),}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue