Ok, here is the question.
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ('team', 'related_projects')
In models.py class User is defined as follows:
class User (models.Model):
team = models.ForeignKey(Team, verbose_name = _('team'))
related_projects = models.ManyToManyField(Project, blank = True)
Both team and related_projects are rendered as a dropdown-box, there values are all existent teams in system and all existing projects in system. That's all right, only they are ordered by primary key. And I would like to see them ordered by alphabetic order. There should I specify ordering for values in drop-down list?