#18452: Spaces in model field definition params cause sqlite errors
-------------------------------+--------------------
Reporter: shacker | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
With this class definition:
class MyModel(models.Model):
title = models.CharField(blank=True, null=True, max_length=60)
run syncdb against sqlite. The title column will end up in sqlite defined
as a required field (it shouldn't be). Remove the sqlite file, and change
the model slightly:
class MyModel(models.Model):
title = models.CharField(blank=True,null=True,max_length=60)
(remove the spaces between the field options). syncdb again and the column
now correctly is non-required.
The presence of the space(s) between field options seems to be
significant.
--
Ticket URL: <https://code.djangoproject.com/ticket/18452>
Django <https://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.