UWCS/uwcs-website — Issue #29: Default ordering for models
Author: itsmonktastic
Created: 2012-03-04 00:06:38+00:00
State: open
Labels: CMS

When using a ModelForm, you often have a combobox for a ForeignKey field which is unsorted. There's possibly a way to fix this at the form level - but since we're happy with an arbitrary ordering, why not enforce a default ordering that's useful? (well, there may already be an ordering by id, but you can always override it)

Should simply need to add an order attribute to the meta class. See here: http://www.djangoproject.com/documentation/models/ordering/