I am trying to create a SlugField in Django.
I created this simple model:
from django.db import models
class test(models.Model):
q = models.CharField(max_length=30)
s = models.SlugField()
I then do this:
>>> from mysite.books.models import test
>>> t=test(q="aa a a a", s="b b b b")
>>> t.s
'b b b b'
>>> t.save()
>>> t.s
'b b b b'
>>>
I was expecting b-b-b-b