#32207: Slug field is accepting whitespace when entered through Django shell.
-------------------------------------+-------------------------------------
Reporter: Harshvardhan Anand | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: slug; prepopulated; | Triage Stage:
error reporting; sqlite | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):
* status: new => closed
* resolution: => invalid
Comment:
This is expected behavior. The `SlugField` functionality is implemented
though validation, which is activated by the forms infrastructure or by
manually calling `full_clean()` on some model. If you set a value and
save, you are on your own, there are no database-level checks. You can see
the exact same behaviour for other fields like `URLField`.
--
Ticket URL: <https://code.djangoproject.com/ticket/32207#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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/076.5e616c9eae8e6c6c36571f5ad2b07f50%40djangoproject.com.