Hi Martin, Looking at your url conf above, I'm thinking that you're not currently using a form for your templates? I'd create a form (newform) for your model and then use this to ensure that entry of the slug field is not required [1] by the user when creating a post, and then update your form's clean_slug() method [2] so that you can check if the slug is empty, create it from the title if need be, and validate that it is unique for that date. Hope that helps!
-Michael [1] http://www.djangoproject.com/documentation/newforms/#required [2] http://www.djangoproject.com/documentation/newforms/#custom-form-and-field-validation On Nov 22, 5:51 am, Martin <[EMAIL PROTECTED]> wrote: > ok, i'll rephrase this all.. > > i'm using django.views.generic.create_update.create_object to create > an object, which has a slug field. i wrote custom template for > creating objects. everytime i want to create an object i get an error, > that the object with this title (or slug) already exists in my db. > > could someone tell me where to look to fix this problem? > > thanks in advance, martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

