#17725: Extend EMPTY_VALUES for the form and|or model field -----------------------------+-------------------------------------- Reporter: prudnikov | Owner: nobody Type: New feature | Status: closed Component: Forms | Version: 1.3 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+-------------------------------------- Changes (by aaugustin):
* status: new => closed * resolution: => wontfix Comment: While this may be appropriate for your particular use case, it sounds like a anti-feature to me: {{{ >>> import urllib >>> urllib.urlencode({"name":"Hello","parent":"None"}) # my parent is actually called "None", anything wrong with that? 'name=Hello&parent=None' }}} If you need this logic in your app, you may implement it: - for a specific field, in your (Model)Form's `clean_<field>` method - for all fields of a model, in your (Model)Form's `clean` method (by iterating over all fields) - for all fields of all models, in the `clean` method of a mixin class that you'll add to your (Model)Forms -- Ticket URL: <https://code.djangoproject.com/ticket/17725#comment:2> 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.