#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 gabrielhurley):
andreyfedoseev: That last line: "Exception Value: value too long for type character varying(200)" looks to me like your db column has something wrong already. Your model above is supposed to be a varchar(500) but pgsql thinks its max is 200. Did you perhaps change the max_length value at some point without altering your db tables? If so, that'd be an easy way to make Django try and insert values which it thinks are valid while pgsql thinks they're invalid.... All in all, I can't reproduce this error currently. Maybe you could provide more details, or better yet provide a unit test that triggers it? -- Ticket URL: <http://code.djangoproject.com/ticket/10523#comment:5> 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.