diff options
author | Simon Charette <charette.s@gmail.com> | 2013-11-17 17:26:20 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-01-10 12:24:52 -0500 |
commit | 07988744b347302925bc6cc66511e34224db55ab (patch) | |
tree | 8931006956c957f377133fda6852dafc60e03ff9 /tests/admin_views/admin.py | |
parent | 48ad288679a0cb2e2cfb17f128903e6c5b1c4870 (diff) | |
download | django-07988744b347302925bc6cc66511e34224db55ab.tar.gz |
Fixed #13165 -- Added edit and delete links to admin foreign key widgets.
Thanks to Collin Anderson for the review and suggestions and Tim for the
final review.
Diffstat (limited to 'tests/admin_views/admin.py')
-rw-r--r-- | tests/admin_views/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py index b81de1d4ac..c9f0dbc2e3 100644 --- a/tests/admin_views/admin.py +++ b/tests/admin_views/admin.py @@ -53,6 +53,7 @@ callable_year.admin_order_field = 'date' class ArticleInline(admin.TabularInline): model = Article + fk_name = 'section' prepopulated_fields = { 'title': ('content',) } @@ -93,7 +94,7 @@ class ArticleAdmin(admin.ModelAdmin): }), ('Some other fields', { 'classes': ('wide',), - 'fields': ('date', 'section') + 'fields': ('date', 'section', 'sub_section') }) ) |