You can override the save() method and generate the slug yourself. There's also a templatetag that 'slugfies' a string. I think you can either use it to output the var or import the function on your save().
On 7/26/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote: > > Hi all, > > In my "Event" model I have a slug field that is automatically > generated from another field. I would like to hide the slug field > from admin users, but still allow it to be automatically generated. > I know I can hide it by using the "fields" parameter in the admin > class of my model. But if I do this then the slug field is not > automatically generated when I create a new event. Is there a way to > hide the slug field, but still have it be filled in when I create a > new event? > > Thanks! > > Tamara -- Julio Nobrega - http://www.inerciasensorial.com.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---