#17320: Sites.domain should not contain whitespace
--------------------------------------+------------------------------------
Reporter: jnovinger | Owner: zerok
Type: Cleanup/optimization | Status: assigned
Component: contrib.sites | Version: 1.3
Severity: Normal | Resolution:
Keywords: sprint2013 | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by dokterbob):
Doing domain-name validation 'the right way' leads to a lot of added
complexity in the code and, what's worse: the risk of false negatives.
People not being able to add a reference to their own site is *not* what
we want.
As for the validation: the error can and should happen at the field level
by adding the validator to `validators` for the database field. For this
an instance of Django's RegexValidator can be used.
--
Ticket URL: <https://code.djangoproject.com/ticket/17320#comment:6>
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.