Re: ManyToMany fields and ordering in the admin

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 8:54 AM, vanderkerkoff wrote: > A fried of mine told me the answer, couldn't find it anywhere online. > Is this documented anywhere? > > In my document model I had to add this to order the document list in > the publication admin page > > class Meta: >    ordering = ('title

Re: ManyToMany fields and ordering in the admin

2011-02-11 Thread vanderkerkoff
A fried of mine told me the answer, couldn't find it anywhere online. Is this documented anywhere? In my document model I had to add this to order the document list in the publication admin page class Meta: ordering = ('title',) I was under the impression all the Meta stuff had been moved in

ManyToMany fields and ordering in the admin

2011-02-11 Thread vanderkerkoff
django1.2.4 I've got a document model class Document(models.Model): LANG_CODE = ( ('B', 'Both'), ('E', 'English'), ('C', 'Cymraeg'), ) title = models.CharField(max_length=100) slug = models.SlugField(max_length=100, u