1👍
✅
Use the limit_choices_to
parameter to ForeignKey
:
mechanic = models.ForeignKey(Staff, limit_choices_to={'staff_role': 'M'})
Source:stackexchange.com