Blog categories
- Web development (13)
- Python (9)
- Django (8)
- Javascript (4)
- HTML (3)
- jQuery (3)
- MongoDB (3)
- PHP (2)
- MySQL (2)
- Linux (1)
- GridFS (1)
- GD (1)
- VLC (1)
- Mac OS (1)
- IPTV (1)
- Ubuntu (1)
-
How to create a slug field with Django forms
Created by dan on Friday 8th January, 2010 at 3:14 PM
A slug field is a field, which only accepts alphanumberic characters and underscores. When creating models in Django, a models.SlugField class exists, which validates against this rule. Quite frustratingly, however Django doesn't have a forms.SlugField class at the moment. It's time for drastic action! If any of you have been ...