I have two models implemented as
class A(models.Model): a_name = models.CharField(max_length=50) class B(models.Model): a = models.ForeignKey(A) b_tag = models.CharField(max_length=50) user=models.ForeignKey(User)
now I define the administrator A and register it with B as a subclass for TabularInline. I wonder if it is possible to somehow filter the list of objects B before displaying the built-in set of forms, therefore, not all objects associated with B get into the set of forms, only those whose user parameter matches the current registered user will be displayed!
source share