#10523: Changing object with long __repr__ causes error
-------------------------------------------+--------------------------------
          Reporter:  bromer                |         Owner:  nobody  
            Status:  reopened              |     Milestone:          
         Component:  django.contrib.admin  |       Version:  1.2-beta
        Resolution:                        |      Keywords:          
             Stage:  Accepted              |     Has_patch:  0       
        Needs_docs:  0                     |   Needs_tests:  0       
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by kmtracey):

 Replying to [comment:5 gabrielhurley]:
 I believe the problem is in the admin change log. !LogEntry in
 django.contrib.admin.models is:

 {{{
 #!python

 class LogEntry(models.Model):
     action_time = models.DateTimeField(_('action time'), auto_now=True)
     user = models.ForeignKey(User)
     content_type = models.ForeignKey(ContentType, blank=True, null=True)
     object_id = models.TextField(_('object id'), blank=True, null=True)
     object_repr = models.CharField(_('object repr'), max_length=200)
     action_flag = models.PositiveSmallIntegerField(_('action flag'))
     change_message = models.TextField(_('change message'), blank=True)
     objects = LogEntryManager()
 }}}

 I think the problem will surface whenever you try to do something with an
 object in admin where the object's representation is longer than 200
 chars.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10523#comment:6>
Django <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 django-upda...@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