I currently have the following models:
class Image(models.Model):
alt_name = models.CharField(max_length=200)
def __unicode__(self):
return self.alt_name
class Album(models.Model):
images = models.ManyToManyField(Image, blank=True)
class AlbumAdmin(admin.ModelAdmin):
model = Album
filter_horizontal = ('images',)
admin.site.register(Album, AlbumAdmin)
The above work fine in the admin where I can see a list of images.
However, I want to sort this list by the Image.alt_name. How do I do
that?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---