#16767: get_or_create does not raise error even though i didn't give a primary 
key
to it
-------------------------------------+-------------------------------------
               Reporter:  haandol    |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Milestone:             |      Component:  Database layer
                Version:  1.3        |  (models, ORM)
             Resolution:             |       Severity:  Normal
           Triage Stage:  Accepted   |       Keywords:  model,
    Needs documentation:  0          |  get_or_create
Patch needs improvement:  0          |      Has patch:  0
                  UI/UX:  0          |    Needs tests:  0
                                     |  Easy pickings:  0
-------------------------------------+-------------------------------------

Comment (by silent1mezzo):

 What would you have it be set as though? A character primary key can be
 anything. Wouldn't having it as:
 {{{
 id = models.AutoField(primary_key=True)
 }}}

 be a better?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16767#comment:3>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to