summaryrefslogtreecommitdiff
path: root/tests/generic_inline_admin
AgeCommit message (Collapse)Author
2026-04-07[4.2.x] Fixed CVE-2026-4277 -- Checked add permissions in ↵Jacob Walls
GenericInlineModelAdmin. Edit permissions were still checked as part of ordinary form validation, but because GenericInlineModelAdmin overrides get_formset(), it lacked InlineModelAdmin's dynamic DeleteProtectedModelForm.has_changed() logic for checking permissions server-side, leaving the add case unaddressed. This change reimplements the relevant part of InlineModelAdmin.get_formset(). Thanks N05ec@LZU-DSLab for the report, and Natalia Bidart, Markus Holtermann, and Simon Charette for reviews. Backport of ef8b25dcc06d158683a5623ce406d561638f4073 from main.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-09-14Fixed #32003 -- Added obj argument to has_perm() methods in tests.Alexander Todorov
2020-05-04Changed `'%s' % value` pattern to `str(value)`.Nick Pope
2019-04-17Fixed #27755 -- Added ModelAdmin.get_inlines() hook.Hasan Ramezani
2019-04-14Renamed camelCaseTestMethods to snake_case_test_methodsMarkus Holtermann
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2017-12-28Moved generic_inlineformset_factory() tests to a separate file.Tim Graham
2017-12-28Refs #27175 -- Removed an obsolete test comment and DEBUG=True.Tim Graham
As of e62165b898785e890661953c3b2c9c36d98aee57, {% include %} doesn't silence exceptions.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-08Made @override_settings(ROOT_URLCONF=...) consistent.Tim Graham
2016-02-06Fixed #26175 -- Removed SHA1 password hashes in tests.Tim Graham
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-19Fixed #24940 -- Made model managers hashableMarkus Holtermann
Thanks Federico Jaramillo Martínez for the report and Tim Graham for the test and review.
2015-06-08Fixed #21927 -- Made application and instance namespaces more distinct.Marten Kenbeek
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-15Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin
2015-02-09Replaced some more hardcoded admin URLsClaude Paroz
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-17Removed ModelAdmin.get_formsets() per deprecation timeline; refs #20702.Tim Graham
2014-12-31Ignored warnings correctly in test_get_formsets_with_inlines_returns_tuples().Berker Peksag
The subclass check in ModelAdmin.get_formsets_with_inlines() wasn't tested correctly because of the super() call in EpisodeAdmin.get_formsets().
2014-12-16Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.Diego Guimarães
2014-12-06Moved misplaced comment.Aymeric Augustin
2014-09-24Fixed #23539 -- Added get_extra(), get_max_num(), and get_min_num() hooks to ↵Justin Caratzas
GenericInlineModelAdmin.
2014-07-31Fixed #13163 -- Added ability to show change links on inline objects in admin.Nick Sandford
Thanks DrMeers for the suggestion.
2014-07-07Fixed #22909 -- Removed camelCasing in some tests.Tim Graham
Thanks brylie.
2014-05-16Fixed #22628 -- Took initial forms into account when combining ↵Stephen Burrows
FormSet.min_num and FormSet.extra. Forwardport of 79f15ab1ef from stable/1.7.x
2014-05-15Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.Anders Steinlein
Thanks Stephen Burrows for work on the patch as well. Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-22Advanced deprecation warnings for 1.8.Aymeric Augustin
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-21Removed some direct settings manipulations in tests; refs #21230.Bouke Haarsma
2013-10-19Removed unused local variables in tests.Tim Graham