1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #6585 -- Admin relationship widgets: Respect ordering defined by target model's ModelAdmin.

Thanks Gary Wilson for the report and Juan Pedro Fisanotti, Carlos
Matías de la Torre for the fix.
This commit is contained in:
Juan Pedro Fisanotti
2013-02-23 15:02:01 -03:00
committed by Ramiro Morales
parent 3ea0c7d35a
commit d9330d5be2
4 changed files with 72 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ class Song(models.Model):
band = models.ForeignKey(Band)
name = models.CharField(max_length=100)
duration = models.IntegerField()
other_interpreters = models.ManyToManyField(Band, related_name='covers')
class Meta:
ordering = ('name',)