mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +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:
parent
3ea0c7d35a
commit
d9330d5be2
4 changed files with 72 additions and 0 deletions
|
|
@ -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',)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue