kopia lustrzana https://github.com/wagtail/wagtail
				
				
				
			BUGFIX: Custom Document models now display custom fields on multi-upload form.
							rodzic
							
								
									3b1dc5be86
								
							
						
					
					
						commit
						8722e3594a
					
				| 
						 | 
					@ -36,7 +36,7 @@ def get_document_multi_form(model):
 | 
				
			||||||
    return modelform_factory(
 | 
					    return modelform_factory(
 | 
				
			||||||
        model,
 | 
					        model,
 | 
				
			||||||
        form=BaseDocumentForm,
 | 
					        form=BaseDocumentForm,
 | 
				
			||||||
        fields=['title', 'collection', 'tags'],
 | 
					        fields=[field for field in model.admin_form_fields if field != 'file'],
 | 
				
			||||||
        widgets={
 | 
					        widgets={
 | 
				
			||||||
            'tags': widgets.AdminTagWidget,
 | 
					            'tags': widgets.AdminTagWidget,
 | 
				
			||||||
            'file': forms.FileInput()
 | 
					            'file': forms.FileInput()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue