So I basically have a Django form to change ownership of an item, but users are showing up in a non-alphabetical and as of yet uncontrollable order.
class myModel(models.Model):
owner = models.ForeignKey(User, null=True, blank=True)
Since I am using a built in model I can't for the life of me figure out how to get "owner" field to sort by the username when calling the form below.
class OwnerChange(ModelForm):
required_css_class = 'required'
class Meta:
model = myModel
fields = ['owner']