Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/management/commands/inspectdb.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+4
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-0/+4
| | | | on_delete for ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Removed support for custom SQL per deprecation timeline.Tim Graham2015-01-171-3/+0
|
* Fixed #17785 -- Preferred column names in get_relations ↵Claude Paroz2015-01-121-3/+3
| | | | | | | introspection Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-2/+2
| | | | generators and dict comprehension
* Fixed #23679 -- Fixed null introspection for char/text ↵Claude Paroz2014-10-201-2/+1
| | | | | | fields Thanks Paul Dejean for the report.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+4
| | | | refs #23395.
* Fixed #23067 -- Updated docs to use django-adminChristoph Heer2014-07-301-1/+1
|
* Fixed #23028: Added unique_togther support to inspectdb.Damien Nozay2014-07-181-3/+20
|
* Fixed #21079 -- Further normalized table names in inspectdbClaude Paroz2014-07-061-1/+1
| | | | Thanks Michael Manfre for the report and Tim Graham for the review.
* Fixed various minor doc typos / references.Daniel Hahler2014-07-061-1/+1
|
* Fixed #22835 -- Deprecated NoArgsCommand.Maxime Turcotte2014-06-191-3/+3
|
* Converted remaining management commands to argparseClaude Paroz2014-06-141-8/+6
|
* Corrected many style guide violations that the newest ↵Alex Gaynor2014-03-301-1/+1
| | | | version of flake8 catches
* Fixed #22322 -- Fixed incorrect explanation of what ↵Tim Graham2014-03-251-1/+1
| | | | | | | | managed=False does. refs #14305. Thanks Adrian Klaver for the report.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-99/+99
| | | | | | This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-1/+1
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Adjusted inspectdb management command to yield PEP ↵JustinTArthur2014-01-181-5/+6
| | | | 8-compliant output barring Django Coding Style exceptions.
* Used app_label instead of appname.Aymeric Augustin2013-12-281-1/+1
| | | | | | | The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
* Fixed all E261 warningscoagulant2013-11-021-3/+3
|
* Fixed #21097 - Added ↵Michael Manfre2013-09-141-2/+5
| | | | DatabaseFeature.can_introspect_autofield
* Fixed #21090 -- Allowed backends to provide dotted field ↵Michael Manfre2013-09-111-1/+6
| | | | path to inspectdb.
* Deprecated SortedDict (replaced with ↵Curtis Maloney2013-08-041-3/+3
| | | | | | collections.OrderedDict) Thanks Loic Bistuer for the review.
* Fixed #5014 -- Guessed max_digits and decimal_places for ↵Claude Paroz2013-04-011-2/+9
| | | | | | | SQLite Decimal is treated as float on SQLite, hence inspectdb can only guess max_digits and decimal_places arguments.
* Fixed #14305 -- Switched inspectdb to create unmanaged ↵Ramiro Morales2013-02-031-2/+4
| | | | | | models. Thanks Ian Kelly for the report and initial patch.
* Fixed dict randomization issue in inspectdbClaude Paroz2013-01-311-2/+3
|
* Fixed #19341 -- Detected NullBooleanField when ↵Claude Paroz2013-01-311-3/+6
| | | | | | introspecting models Thanks Tim Bowden for the report.
* Added introspection tests for most of Django model fieldsClaude Paroz2013-01-311-1/+1
|
* Fixed #19676 -- Supported 'self' foreign keys in inspectdb.Aymeric Augustin2013-01-281-3/+3
| | | | Thanks Georgy Kutsurua for the report and Simon Charette for the patch.
* Fixed #18843 -- Replaced more special chars in column ↵Claude Paroz2012-08-231-8/+7
| | | | | | names (inspectdb) Thanks airstrike for the report.
* Fixed #12460 -- Improved inspectdb handling of special ↵Claude Paroz2012-08-231-39/+78
| | | | | | | field names Thanks mihail lukin for the report and elijahr and kgibula for their work on the patch.
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-1/+2
|
* Made inspectdb tests deal with a smaller generated ↵Ramiro Morales2012-06-021-0/+5
| | | | | | | models.py file. Implemented this by adding a stealth table_name_filter option for the command.
* Made table_names() output sorted.Anssi Kääriäinen2012-04-291-1/+1
| | | | | | | | | | | Fixed #18218 -- previously Django's introspection table_names() and get_table_list() methods did not sort the output consistently. This resulted in random order of inspected models. This commit also removed all external usages of get_table_list(). table_names() should be used instead. Thanks to claudep for patch and report.
* Fixed #15076 -- Quoted ForeignKey target class names in ↵Claude Paroz2012-04-271-1/+8
| | | | | | | | | inspectdb when class is defined below. Thanks saschwarz for the report, jeff@deserettechnology.com for the initial patch and Ramiro Morales for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17942 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17676 -- Fixed introspection of column names that ↵Ramiro Morales2012-02-111-2/+2
| | | | | | | | start with digit(s). Thanks Gandalfar for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8317 -- Corrected the inspectdb management ↵Julien Phalip2012-02-051-10/+10
| | | | | | command to properly set `primary_key=True` and `unique=True` on foreign keys. Thanks to bthomas for the report and patch, and to David Gouldin for the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13760 -- Cleaned up unnecessary default option ↵Julien Phalip2011-10-231-1/+1
| | | | | | handling in a bunch of management commands. Thanks to Paul McMillan for the report and to adamv and Claude Paroz for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Teach inspectdb to handle SQL column names that are digits.Malcolm Tredinnick2011-08-221-0/+6
| | | | | | | | | There's no accounting for taste in the way some people name columns, apparently. Create a column with a name of "1" and inspectdb will still produce valid Python code now. Fixed #16536. Thanks tereaom and danodonovan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed 14796 -- Modified order of operations performed on ↵Ramiro Morales2011-01-241-4/+7
| | | | | | field names by the inspectdb command so it doesn't generates model fields with names equal to Python keywords. Thanks pappjm at gmail dot com for the report and mmcnickle for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12637 -- GeoDjango's `inspectdb` command is now a ↵Justin Bronn2010-01-181-23/+51
| | | | | | subclass of Django's, and works with all spatial backends (Oracle and SpatiaLite did work before). This changeset introduces new introspection modules for all of the spatial backends and adds hooks to the original `inspectdb.Command` class to enable reuse. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-4/+13
| | | | | | | | | | | | | | | | | This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11049: introspection on Oracle now identifies ↵Matt Boersma2009-08-211-1/+1
| | | | | | IntegerFields correctly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8573 -- Fixed bug in 'inspectdb' regarding ↵Adrian Holovaty2008-09-171-9/+11
| | | | | | case-sensitivity of field names. It was automatically lowercasing the column name to create the Field name, which was inaccurate in the case of column names that contained a capital letter. Thanks for reporting and detective work, ramiro git-svn-id: http://code.djangoproject.com/svn/django/trunk@9053 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7285: Improved inspectdb handling of dashes in ↵Russell Keith-Magee2008-08-161-4/+11
| | | | | | table and field names. Thanks to redalastor@gmail.com for the report and Justin Bronn for the first part of a fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6935: Modified inspectdb to provide better ↵Russell Keith-Magee2008-08-161-1/+1
| | | | | | handling for table names with spaces. Thanks to adamv for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5461 -- Refactored the database backend code to ↵Russell Keith-Magee2008-08-111-8/+6
| | | | | | use classes for the creation and introspection modules. Introduces a new validation module for DB-specific validation. This is a backwards incompatible change; see the wiki for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved error handling for management.py commands, ↵Russell Keith-Magee2007-08-161-3/+3
| | | | | | especially for no argument or non-applabel argument commands. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5903 bcc190cf-cafb-0310-a4f2-bffc1f526a37