I want to add a new field --slug-- to tables where any data is being
used in the URL
I dumped all data, added that new field
----------
slug = models.SlugField(_('slug'))
----------
And I created a hook to save it.
----------
def save(self):
#if not self.slug:
self.slug = defaultfilters.slugify(self.name)
super(Model, self).save()
----------
I load all data but slug is not being created.
I also tried with _post_save() hook.
Any idea to solve this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---