Folks, I have installed per-object-permissions branch and hit a case when I need to limit listing of ForeignKeys Instances inside DjangoAdmin.
Example: Model Settings: class RelatedField(models.Model): RelatedName = models.CharField('Name', maxlength=64) class Meta: row_level_permissions = True class Admin: show_all_rows = False grant_change_row_level_perm = True grant_delete_row_level_perm = True class Items(models.Model): ItemName = models.CharField('Item Name', maxlength=64) ItemRelated = models.ForeignKey(RelatedField, verbose_name='Related', to_field='RelatedName') class Meta: row_level_permissions = True class Admin: show_all_rows = False grant_change_row_level_perm = True grant_delete_row_level_perm = True In the change page of RelatedField I would properly see the instances for which I have rights to based on my RowLevelPermissions, but when I will try adding a new Item instance, I will get in listing of ItemRelated all the RelatedField instances, including the ones I don't have right to see them. My Question now is if there is any elegant way to limit the choices inside a ForeignKey based on RowLevelPermissions(already checked here limit_choices_to field option, but it looks like I need to do some complex join queries to get that). Ta, DanB --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---