#16485: Admin URL bug with CharField primary keys
-------------------------------+-------------------------------
 Reporter:  sbaechler          |          Owner:  nobody
     Type:  Bug                |         Status:  new
Milestone:                     |      Component:  contrib.admin
  Version:  1.3                |       Severity:  Normal
 Keywords:  admin primary_key  |   Triage Stage:  Unreviewed
Has patch:  0                  |  Easy pickings:  0
    UI/UX:  0                  |
-------------------------------+-------------------------------
 I have the following primary key field:

 {{{
 id = models.CharField(_('id'), max_length=40, primary_key=True)
 }}}
 The value is: 126130274108967_190034094385251 (a Facebook post id)

 The admin interface change list correctly shows that id. But the url of
 the item is
 126130274108967_5F190034094385251/ notice the _5F... in the middle.

 This causes a 404 every time I create a new entry.

 Regards
 Simon

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16485>
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.

Reply via email to