#8449 closed (duplicate)
SlugField validator not working in new admin
Reported by: | lingrlongr | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | slug | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The new admin app is allowing invalid characters in SlugFields. I tested with this model:
# models.py from django.db import models class SlugModel(models.Model): slug = models.SlugField()
# admin.py from django.contrib import admin from models import SlugModel class SlugModelAdmin(admin.ModelAdmin): pass admin.site.register(SlugModel, SlugModelAdmin)
In the admin, I tested the following:
- hello world
- slug%fest
- pirate&bay
Each one is saved successfully. A validation error does not appear.
Tested in SVN 8441.
Change History (3)
comment:1 by , 16 years ago
milestone: | 1.0 maybe → 1.0 |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This should have been fixed in [8477] and reported in #8040. Marking a duplicate.