#4136: CharField(null=True, blank=True, unique=True)
-------------------------------------+-------------------------------------
     Reporter:  David Cramer         |                    Owner:
  <dcramer@…>                        |  aashu_dwivedi
         Type:  Bug                  |                   Status:  assigned
    Component:  Forms                |                  Version:  1.3-rc
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by collinanderson):

 You probably have one entry that has an empty string instead of null.
 Change that to null/none and that should fix the uniqueness problem. If
 you use my code in your save method, you just need to call save on that
 object.

--
Ticket URL: <https://code.djangoproject.com/ticket/4136#comment:35>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/090.f970797a4b7b0ccb34e40c930cc77b65%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to