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
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
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
3 matches
Mail list logo