In a previous thread [1], there was talk of allowing ModelForm to work without a model hard-coded, so it would base it off the instance passed to the form.
However, on trying to make that work, it seems that something may have been left out of the previous patch - if I don't include a model, it never creates any fields, regardless of whether or not I specify fields or exclude, and if I leave out model and don't pass instance, I get the previously discussed "NoneType is not callable error", which should've been fixed by the previous patch if I'm reading the thread right :) Did something get left out of that last fix, or has it broken recently? Alternatively, am I simply doing it wrong? :) My simple test is merely this: class NameEditForm(ModelForm): class Meta: fields = ('name',) and I then try to use it on a model with a 'name' field, but nothing works. [1]http://groups.google.com/group/django-developers/browse_thread/thread/8774da1fd5b77eb1 -- Collin Grady Anyone can make an omelet with eggs. The trick is to make one with none. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---