class Category(models.Model): name = models.CharField(maxlength=70) parent = models.ForeignKey('self', blank=True, null=True, limit_choices_to = {'parent__isnull': True})
I dont want to be able to select a parent which is actualy the category currently edited. I tried a custom validator but I dont have access to the category_id. So I tried a custom manipulator but I couldn't fix it to work in admin The only possible solution I have now is the raise an error in the custom save method, which is a terrible ugly solution. Does anyone have a pointer to a simple method to extend the automatic manipulator??? Thanks, Rob --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---