#10005: Incorrect classname assumed in ModelFormMetaClass modelform_factory() ---------------------------------------------------+------------------------ Reporter: jdo...@flinttechnology.co.uk | Owner: nobody Status: new | Milestone: post-1.0 Component: Forms | Version: Resolution: | Keywords: modelform_factory assumption Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Comment (by Jon):
Amendment - code to reproduce exception: {{{ class ImportAdminAddForm(forms.ModelForm): class Meta: model = Import class ImportAdminForm(forms.ModelForm): class Meta: model = Import def __init__(self, *args, **kwargs): super(ImportAdminForm, self).__init__(self, *args, **kwargs) ### Causes Exception class ImportAdminAdd(admin.ModelAdmin): form = ImportAdminAddForm class ImportAdmin(admin.ModelAdmin): form = ImportAdminForm }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10005#comment:2> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---