summaryrefslogtreecommitdiff
path: root/django/core/management
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34568 -- Made makemigrations --update respect --name option.Mariusz Felisiak2023-05-171-3/+2
| | | Thanks David Sanders for the report.
* Fixed #34535 -- Fixed SQLite dbshell crash on pathlib.Path when handling ↵Jan Pieter Waagmeester2023-05-041-1/+1
| | | | | | CommandError. Regression in 5b884d45ac5b76234eca614d90c83b347294c332.
* Fixed typo in ManagementUtility.autocomplete()'s docstring.Vitor [Bux]baum2023-04-131-2/+2
|
* Fixed #32813 -- Made runserver display port after binding.Dhanush2023-02-101-25/+21
| | | | Thanks Florian Apolloner for the review.
* Fixed #34259 -- Passed called_from_command_line to command subparsers.Adam Johnson2023-02-031-0/+10
|
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-013-3/+1
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Refs #34233 -- Used @functools.cache.Nick Pope2023-01-183-3/+3
| | | | Python 3.9+ supports @functools.cache as an alias for @functools.lru_cache(maxsize=None).
* Refs #34233 -- Used str.removeprefix()/removesuffix().Mariusz Felisiak2023-01-183-5/+4
|
* Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres2022-12-281-1/+2
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul2022-12-281-13/+31
| | | | | | | | 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>
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-151-1/+1
| | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Made inspectdb used Cursor.description.display_size for CharFields' max_length.Mariusz Felisiak2022-12-081-2/+2
| | | internal_size is size for fixed-size types not for char types.
* Fixed #34085 -- Made management commands don't use black for non-Python files.Carlton Gibson2022-10-201-3/+1
| | | | | | | Bug in d113b5a837f726d1c638d76c4e88445e6cd59fd5. Co-authored-by: programmylife <acmshar@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #34068 -- Corrected output of runserver command for "0" IP address.Dhanush2022-10-041-1/+8
| | | | Thanks David Sanders for the review.
* Fixed #34051 -- Made makemigrations --check exit before making migrations.Jacob Walls2022-09-281-3/+6
|
* Fixed #34052 -- Made migrate --check don't emit signals and output when up ↵JunKi Yoon2022-09-271-10/+14
| | | | to date.
* Improved migrate help text for the --check option.Mike Lissner2022-09-261-1/+4
|
* Fixed #33986 -- Hardened binary lookup in template commands.Shai Berger2022-09-072-4/+19
| | | | | | | | | | | | | | | Made template commands look up formatters before writing files. This makes sure files included in the template are not identified as executable formatter commands, even in case the template is rendered into the system path (as might easily happen on Windows, where the current directory is on the system path by default). While at it, Warned about trusting custom templates for startapp/startproject. Thanks Trung Pham of Viettel Cyber Security for reporting the issue, Django Security Team for discussions, and Adam Johnson and Carlton Gibson for reviews.
* Fixed #33949 -- Fixed fixture dirs duplicates with Path instances.Claude Paroz2022-08-231-1/+1
|
* Removed obsolete note in management.get_commands() docstring.Anders Kaseorg2022-07-251-4/+0
| | | | | | Commit 901c3708fb8a2e51bddd37358f8e536282a8c266 documented that the return dict could directly include command modules instead of name strings, which was true at the time. However, that possibility was removed in commit 38f1fe3b35c212136d959538a309c33bf2d340a9.
* Fixed #33823 -- Made inspectdb generate unique related_name when reverse ↵Vladimir Kochetkov2022-07-061-2/+10
| | | | accessor clashes.
* Fixed #33657 -- Allowed customizing formatter class of argument parsers.Abhinav Yadav2022-06-201-1/+1
|
* Fixed #24870 -- Added --update option to makemigrations command.David Wobrock2022-06-171-2/+105
|
* Refs #24870 -- Refactored out get_relative_path() hook in makemigrations.David Wobrock2022-06-171-6/+11
|
* Fixed #33565 -- Improved locale format validation for the makemessages command.Ronnie van den Crommenacker2022-06-081-7/+38
|
* Fixed #32234 -- Made inspectdb inform about composite primary keys.Anv3sh2022-06-011-2/+11
|
* Renamed wrapped functions to wrapper.Aymeric Augustin2022-05-251-2/+2
| | | | | All these functions are wrapping another function. They're the wrapper, while the function they're wrapping is the wrapped.
* Refs #33173 -- Removed use of deprecated cgi module.Carlton Gibson2022-05-111-2/+2
| | | | https://peps.python.org/pep-0594/#cgi
* Fixed #33643 -- Fixed inspectdb crash on functional unique constraints on ↵Scott2022-04-161-1/+3
| | | | Oracle.
* Fixed #33580 -- Fixed crash when checking support for terminal colors on Wine.jochemfranken2022-03-161-1/+1
| | | Regression in f1585c54d0242d71cdc63421f751528472b1c9c2.
* Refs #33476 -- Added warning to optimizemigration/squashmigrations commands ↵Mariusz Felisiak2022-02-232-0/+16
| | | | when black cannot be applied.
* Fixed #27844 -- Added optimizemigration management command.David Wobrock2022-02-221-0/+121
|
* Refs #33476 -- Made management commands use black.Carlton Gibson2022-02-114-1/+25
| | | | Run black on generated files, if it is available on PATH.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-0720-59/+144
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0730-1237/+1881
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-2/+2
| | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
* Fixed #26760 -- Added --prune option to migrate command.Jacob Walls2022-01-211-0/+52
|
* Fixed #29026 -- Added --scriptable option to makemigrations.Jacob Walls2022-01-101-3/+22
|
* Refs #32355 -- Removed unnecessary list() calls before reversed() on dictviews.Mariusz Felisiak2022-01-071-1/+1
| | | | Dict and dictviews are iterable in reversed insertion order using reversed() in Python 3.8+.
* Refs #29026 -- Allowed customizing InteractiveMigrationQuestioner's prompt ↵Jacob Walls2022-01-031-2/+6
| | | | | | | destination. Previously, the questioner did not obey the value of stdout provided to the command.
* Fixed #32397 -- Made startapp/startproject management commands set User-Agent.Ad Timmering2021-11-251-4/+10
| | | | This sets User-Agent to 'Django/<version>'.
* Fixed #4282 -- Made startapp/startproject management commands honor umask.Ad Timmering2021-11-241-1/+7
| | | | Co-authored-by: Christian Schmitt <c.schmitt@briefdomain.de>
* Fixed #6106 -- Prevented makemessages from changing .po files when up to date.Ad Timmering2021-11-111-2/+4
| | | | Co-authored-by: Daniyal Abbasi <abbasi.daniyal98@gmail.com>
* Fixed #33187 -- Made inspectdb handle ForeignKey.to_field attribute.jordan.bae2021-11-021-2/+6
|
* Fixed #33246 -- Made squashmigrations raise CommandError when squashed_name ↵andrewdotn2021-11-021-0/+6
| | | | already exists.
* Fixed #33205 -- Made call_command() raise TypeError when dest with multiple ↵Hasan Ramezani2021-10-251-0/+6
| | | | arguments is passed.
* Fixed #29470 -- Logged makemigrations automatic decisions in non-interactive ↵Jacob Walls2021-10-121-1/+6
| | | | mode.
* Refs #29026 -- Added log() to makemigrations.Jacob Walls2021-10-051-19/+22
|
* Refs #32355 -- Modernized subprocess.run() calls.Adam Johnson2021-09-271-2/+2
|
* Refs #31546 -- Removed support for boolean values in ↵Mariusz Felisiak2021-09-201-10/+0
| | | | | | Command.requires_system_checks. Per deprecation timeline.