[Django]-Django admin to edit foreign keys inline

1👍

Try adding to your admin.py for those classes. Try something like this.

 class ShopAdmin(admin.ModelAdmin):
    list_display = ('tel', 'address', 'position')

This can be found in detail in the Djangobook admin chapter.
http://www.djangobook.com/en/2.0/chapter06.html

-1👍

Dig you try filter_horizontal: http://www.djangobook.com/en/2.0/chapter06.html ?

It only works with ManyToManyFields, so you have to change your models.

👤luistm

Leave a comment