I have a a model that stores users:
class SubItem(models.Model):
created = models.DateTimeField(default=datetime.now)
created_by = models.ForeignKey(User)
I have a group in the auth admin section called ‘advisors’. How do I only show the advisors in the pulldown that django creates. (I have a feeling I have to override the init in forms.py)
I found out from this link that only selecting users in a set group needs to be enforced at the form level
I hope this helps someone