mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
committed by
Ramiro Morales
parent
3ea0c7d35a
commit
d9330d5be2
@@ -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',)
|
||||
|
||||
Reference in New Issue
Block a user