1
class UserCustomer(models.Model):
    user = models.ForeignKey(User)
    customer = models.ForeignKey(CustomerProfile)

In admin interface, while adding a new record, is it possible to restrict(remove) the 'user' in user drop down, if that user is already associated with any customer?

Siva Arunachalam
  • 7,582
  • 15
  • 79
  • 132

1 Answers1

0

Does this answer your question?


How about this one? He goes through multiple examples including filtering ModelAdmin inlines (which I think is what you're after).

Community
  • 1
  • 1
Koobz
  • 6,928
  • 6
  • 41
  • 53