#3681: Placing newforms in model breaks manage.py syncdb
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: django.newforms
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------------+----------------------------------------
Old description:
> Hi
>
> I placed a newform calss "inline" in a model. It works fine but breaks
> manage.py syncdb
>
>
> class MyModel(models.Model):
> name = models.CharField(maxlength=200)
> descr = models.CharField(maxlength=300)
>
> class EditForm(forms.Form):
> name = forms.CharField(label="Name", max_length=200)
> descr = forms.CharField(label="Description", max_length=200)
New description:
Hi
I placed a newform calss "inline" in a model. It works fine but breaks
manage.py syncdb
{{{
#!python
class MyModel(models.Model):
name = models.CharField(maxlength=200)
descr = models.CharField(maxlength=300)
class EditForm(forms.Form):
name = forms.CharField(label="Name", max_length=200)
descr = forms.CharField(label="Description", max_length=200)
}}}
Comment (by mtredinnick):
--
Ticket URL: <http://code.djangoproject.com/ticket/3681#comment:3>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---