summaryrefslogtreecommitdiff
path: root/tests/inspectdb/models.py
AgeCommit message (Collapse)Author
2025-11-23Refs #21961 -- Added DatabaseFeatures.supports_on_delete_db_(cascade/null) ↵Tim Graham
feature flags. Needed on MongoDB. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-11-17Fixed #24920 -- Added support for DecimalField with no precision.Mariusz Felisiak
Thanks Lily for the review.
2025-10-31Fixed #36661 -- Added introspection of database-level delete options.Mariusz Felisiak
2025-05-06Refs #36052, #32234 -- Fixed inspectdb tests for CompositePrimaryKey on Oracle.Mariusz Felisiak
Tests regression in 4c75858135589f3a00e32eb4d476074536371a32.
2025-04-30Refs #36052, #32234 -- Removed create_test_table_with_composite_primary_key ↵Simon Charette
flag in favor of using CompositePrimaryKey. Now that Django properly supports creating models with composite primary keys, the tests should use a `CompositePrimaryKey` field instead of a feature flag to inline backend specific SQL for creating a composite PK. Specifcially, the inspectdb's test_composite_primary_key was adjusted to use schema editor instead of per-backend raw SQL.
2023-08-21Fixed #33143 -- Raised RuntimeWarning when performing import-time queries.Florian Zimmermann
2023-05-22Fixed #34587 -- Allowed customizing table name normalization in inspectdb ↵Andrii Kohut
command.
2022-12-28Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-12-28Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul
Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-07-06Fixed #33823 -- Made inspectdb generate unique related_name when reverse ↵Vladimir Kochetkov
accessor clashes.
2022-04-16Fixed #33643 -- Fixed inspectdb crash on functional unique constraints on ↵Scott
Oracle.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-02Fixed #33187 -- Made inspectdb handle ForeignKey.to_field attribute.jordan.bae
2020-09-21Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick
Thanks Simon Charette and Mariusz Felisiak for reviews.
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-11-19Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede
2018-03-21Fixed #27533 -- Fixed inspectdb crash if a unique constraint uses an ↵Michael Sinov
unsupported type.
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2017-01-19Fixed spelling mistakes in code and comments.james mike dupont
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2016-07-20Refs #24928 -- Added introspection support for UUIDFieldClaude Paroz
2015-11-25Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.Jacek Bzdak
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-01-19Removed IPAddressField per deprecation timeline; refs #20439.Tim Graham
2015-01-01Fixed #23891 -- Moved deprecation of IPAddressField to system check framework.Tim Graham
Thanks Markus Holtermann for review.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-10-20Fixed #23679 -- Fixed null introspection for char/text fieldsClaude Paroz
Thanks Paul Dejean for the report.
2014-07-18Fixed #23028: Added unique_togther support to inspectdb.Damien Nozay
2014-07-06Fixed #21079 -- Further normalized table names in inspectdbClaude Paroz
Thanks Michael Manfre for the report and Tim Graham for the review.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-09-28Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn
2013-08-15Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol
not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
2013-04-01Fixed #16737 -- Support non-ascii column names in inspectdbClaude Paroz
Thanks moof at metamoof.net for the report.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner