#29647: "Please correct the error below." when saving edit model form with inline formset and space at the end of primary key value -------------------------------+-------------------------------------- Reporter: uralov | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 2.1 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by Tim Graham): I can't reproduce this given the models and admin you provided. Which version of Django are you using? Starting [https://docs.djangoproject.com/en/dev/releases/1.9/#miscellaneous in Django 1.9]: CharField now strips input of leading and trailing whitespace by default. This can be disabled by setting the new strip argument to False. The behavior I see when editing an `Attribute` whose `name` contains a trailing space is that a new instance is created because primary keys aren't editable as described in #2259. -- Ticket URL: <https://code.djangoproject.com/ticket/29647#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.5f4d0bec27d339266c2c2ca6315ae274%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.