#17320: Sites.domain should not contain whitespace
--------------------------------------+------------------------------------
Reporter: jnovinger | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.sites | Version: 1.3
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by aaugustin):
* needs_better_patch: 0 => 1
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
I agree that spaces in domain names are invalid.
However, Django avoids "magic auto-fix", because it quickly becomes auto-
break for some expectations.
If would be better to implement a `clean_fields` method in the `Site`
model.
--
Ticket URL: <https://code.djangoproject.com/ticket/17320#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 [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.