diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2014-12-30 02:25:51 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-31 08:24:09 -0500 |
| commit | 32ca159c96339b4856837d7abec376a575ec44ab (patch) | |
| tree | 5f56ca40ceeeabcf7abe14afb8c00ffc9cd2cb32 /django | |
| parent | 013c2d8d02e679c969255d9b11214d020dd34418 (diff) | |
Ignored warnings correctly in test_get_formsets_with_inlines_returns_tuples().
The subclass check in ModelAdmin.get_formsets_with_inlines() wasn't
tested correctly because of the super() call in
EpisodeAdmin.get_formsets().
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 47c57aa4db..d3f4ad16fc 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -773,7 +773,7 @@ class ModelAdmin(BaseModelAdmin): warnings.warn( "ModelAdmin.get_formsets() is deprecated and will be removed in " "Django 1.9. Use ModelAdmin.get_formsets_with_inlines() instead.", - RemovedInDjango19Warning + RemovedInDjango19Warning, stacklevel=2 ) if formsets: zipped = zip(formsets, self.get_inline_instances(request, None)) |
