Code

Ticket #11715: patch.diff

File patch.diff, 330 bytes (added by aiv, 5 years ago)
Line 
1--- django/contrib/admin/options.py
2+++ django/contrib/admin/options.py
3@@ -187,7 +187,7 @@ class ModelAdmin(BaseModelAdmin):
4     save_as = False
5     save_on_top = False
6     ordering = None
7-    inlines = []
8+    inlines = ()
9
10     # Custom templates (designed to be over-ridden in subclasses)
11     change_form_template = None