Hi all - I have this code:

class Page(models.Model):
    visible = models.BooleanField(default=True)
    parent = models.ForeignKey('self', null=True, blank=True)
    title = models.CharField(max_length=255)

In the admin, I don't want a user to be able to select the current
page as its own parent. How do I modify the choices in the parent
select menu so that the current page is not in the menu? Anyone ever
had to do this? Or was this already discussed previously? I couldn't
find anything through a search.

It seemed like all the solutions that I found to this online were
pretty complicated, so I wanted to see if there was an easier way.

Thanks!
Rich
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to