summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
AgeCommit message (Collapse)Author
2021-09-21[4.0.x] Fixed #33111 -- Fixed passing object to ModelAdmin.get_inlines() ↵Hasan Ramezani
when editing in admin change view. ModelAdmin.get_inlines() should get an unmutated object when creating formsets during POST request. Backport of 2f0f30f973363a59c20f204f9351724fb2ce7327 from main
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-09-10Fixed #31867 -- Made TabularInline handling of hidden fields with view-only ↵antoinehumbert
permissions consistent with StackedInline.
2021-09-08Fixed #32219 -- Made InlineModelAdmin.verbose_name_plural fallback to its ↵Siburg
verbose_name.
2021-09-08Refs #32219 -- Added admin model inline tests for verbose names.Siburg
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-06-07Fixed typos in test comments.luzpaz
2021-02-19Refs #30231 -- Fixed SeleniumTests.test_inlines_verbose_name with headless mode.David Smith
Horizontal scrollbar doesn't appear with the headless mode on small windows, that's why window.scrollTo() is not an option for these tests even after fixing #32459.
2021-02-16Fixed #30231 -- Fixed admin filter horizontal/vertical verbose_name generation.Teresa Partida
Co-authored-by: David Smith <smithdc@gmail.com>
2021-01-18Fixed #18549 -- Fixed heading for inlines with a OneToOneField.Timothy McCurrach
Used verbose_name instead of verbose_name_plural.
2021-01-18Refs #18549 -- Added test for heading of foreign key inlines.Timothy McCurrach
2020-10-28Refs #25780 -- Removed redundant status code assertions from tests.Jon Dufresne
2020-05-14Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne
2020-05-11Fixed #31034 -- Added a navigation sidebar to the admin.Tom Carrick
Co-authored-by: elky <elky@users.noreply.github.com> Co-authored-by: Goetz <goetz.buerkle@gmail.com>
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-22Refs #29892 -- Fixed selenium test test_inline_formset_error_input_border on ↵Jon Dufresne
Firefox. Firefox does not include shorthand properties, such as "border", in the computed CSS properties object. This is documented at MDN: https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle > The returned CSSStyleDeclaration object contains active values for CSS > property longhand names. For example, border-bottom-width instead of > the border-width and border shorthand property names. It is safest to > query values with only longhand names like font-size. Shorthand names > like font will not work with most browsers. This difference between Firefox and Chrome is also discussed in the stackoverflow thread at: https://stackoverflow.com/a/32296604
2020-04-16Fixed #31441 -- Ensured TabluarInline expands when child inputs have errors.Hasan Ramezani
2020-04-16Refs #31441 -- Added red border to inputs with errors for TabluarInline.Hasan Ramezani
2020-03-09Fixed #31349 -- Used :nth-child() CSS pseudo-class to style alternative rows ↵Jon Dufresne
in admin.
2019-12-05Moved selenium import to nested scope.Carlton Gibson
2019-12-02Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵Carlton Gibson
editable inlines in admin. Thank you to Shen Ying for reporting this issue.
2019-11-27Fixed #30973 -- Converted selenium tests wait_page_loaded to context manager.Johannes Hoppe
2019-10-25Fixed #29087 -- Added delete buttons for unsaved admin inlines on validation ↵Carlton Gibson
error.
2019-06-04Fixed #30520 -- Fixed crash of admin model inlines on custom fields without ↵Jones Ambrosi
labels.
2019-05-17Fixed #30459 -- Delegated hide/show JS toggle to parent div.Claude Paroz
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2019-03-30Fixed #30289 -- Prevented admin inlines for a ManyToManyField's implicit ↵Tim Graham
through model from being editable if the user only has the view permission.
2019-02-27Fixed #30179 -- Fixed form Media merging when pairwise merging is insufficient.Matthias Kestenholz
Thanks gasman for the tests, and codingjoe and timgraham for the review.
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-11-27Adjusted code style of a few test data setup methods.Simon Charette
Thanks Mariusz for suggesting it.
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-11-20Fixed #29953 -- Added CSS class to column headers in tabular inlines.redodo
The class name is the same as one given to the fields in the change list.
2018-08-10Fixed #29637 -- Fixed admin change form crash if the user doesn’t have the ↵Clément Mangin
add permission to a TabularInline. Regression in 825f0beda804e48e9197fcf3b0d909f9f548aa47.
2018-05-18Fixed #29414 -- Restored form inputs on admin inlines when the user doesn't ↵Paulo Alvarado
have the change permission. Regression in 825f0beda804e48e9197fcf3b0d909f9f548aa47.
2018-03-17Fixed #29184 -- Made TabularInline respect model form's Meta.labels and ↵Hasan Ramezani
help_texts.
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2017-11-30Fixed #28866 -- Made InlineAdminFormSet include InlineModelAdmin's Media ↵Vasiliy Bolshakov
before its formset's Media. This provides better backwards compatibility following refs #28377.
2017-06-12Fixed #27967 -- Fixed KeyError in admin's inline form with inherited ↵Paulo
non-editable pk. Thanks Robin Anupol for the initial report and workaround.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
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-12-27Fixed #15667 -- Added template-based widget rendering.Preston Timmons
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-10Fixed #27207 -- Replaced <p> tag with <div> in admin help texts.Alexander Gaevsky
2016-09-09Fixed #27199 -- Made AdminIntegerFieldWidget use NumberInput.Rinat Khabibiev
2016-06-21Fixed #26729 -- Allowed overriding a form field's label/help_text in ↵Paulo
Form.__init__() for TabularInline.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-03-15Fixed #25364 -- Added generic way to test on all browsers supported by selenium.Akshesh
Browser names should be passed as a comma separated list to the --selenium flag. Thanks Tim Graham, Simon Charette and Moritz Sichert for review and discussion.
2016-02-06Fixed #26175 -- Removed SHA1 password hashes in tests.Tim Graham
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack