On Thu, 2007-03-01 at 15:30 -0800, stevelewis wrote: > So I've developed on my laptop, and am trying to deploy to a unix box, > and most things work fine, but I'm using the newforms form for > instance method, and it can't find it: > > 'module' object has no attribute 'form_for_instance' > > It appears to be there, but I'm not sure why I can't see it. Is there > something I'm doing wrong? When I do a print dir(forms.models) all I > get is this: > > ['__all__', '__builtins__', '__doc__', '__file__', '__name__', > 'form_for_fields', 'form_for_model'] > > The code I'm calling is the following: > > order = Order.objects.get(pk=order_id) > OrderForm = forms.models.form_for_instance(order)
Seems very strange. Let's rule out the obvious: what version of the code are you using (subversion revision number would be ideal)? I cannot think of anything beyond a corrupted source code checkout (or an old copy of the code) that might be causing this right at the moment. Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---