On 12/27/06, Vasily Sulatskov <[EMAIL PROTECTED]> wrote:
I have models similar to following:
class User(models.Model):
name = models.CharField(maxlength=100)
class Keyword(models.Model):
name = models.CharField(maxlength=100)
user = models.ForeignKey(User)
class Article(models.Model):
name = models.CharField(maxlength=100)
user = models.ForeignKey(User)
keywords = model.ManyToManyField(Keyword,
filter_interface=models.HORIZONTAL)
Admin works but displays on Article edit page Keywords of all users,
while I want it to display Keywords only of the same User only.
This isn't exactly what you asked for, but perhaps it'll help:
http://code.djangoproject.com/wiki/CookBookPredicates
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---