summaryrefslogtreecommitdiff
path: root/django/core/management/commands/sqlsequencereset.py
AgeCommit message (Collapse)Author
2024-05-10Fixed #35429 -- Added argparse choices to --database options.SaJH
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
2019-07-01Fixed #30595 -- Added error message when no objects found to sql* management ↵Hasan Ramezani
commands.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-03-05Refs #26315 -- Cleaned up argparse options in commands.Jon Dufresne
* Removed type coercion. Options created by argparse are already coerced to the correct type. * Removed fallback default values. Options created by argparse already have a default value. * Used direct indexing. Options created by argparse are always set. This eliminates the need to use dict.get().
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-26Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.Tim Graham
2014-06-14Converted remaining management commands to argparseClaude Paroz
2014-06-07Fixed #22749: Making SQL management commands migration aware.Víðir Valberg Guðmundsson
2014-06-01Revert "Making SQL management commands migration aware."Florian Apolloner
This reverts commit cb9c9a7b5879671053c7d2ad6e79943a8814b274.
2014-05-29Making SQL management commands migration aware.Víðir Valberg Guðmundsson
2013-12-29Removed unused import.Aymeric Augustin
2013-12-29Added AppConfig.get_models().Aymeric Augustin
2013-12-28Migrated built-in AppCommands to use handle_app_config.Aymeric Augustin
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Removed module-level functions for the app cache.Aymeric Augustin
Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
2013-11-02More attacking E302 violatorsAlex Gaynor
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2011-10-23Fixed #13760 -- Cleaned up unnecessary default option handling in a bunch of ↵Julien Phalip
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
2010-04-01Fixed #13248 -- Corrected the output of sqlsequencereset after the m2m ↵Russell Keith-Magee
changes. Thanks to EroSennin for the report, and Gabriel Hurley for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
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
2008-06-19Fixed #6650 -- Added UTF-8 encoding to SQL output provided by management ↵Russell Keith-Magee
commands. Thanks to farcaller for the suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-20Refactored get_sql_sequence_reset() to ↵Adrian Holovaty
DatabaseOperations.sequence_reset_sql(). Refs #5106 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-16Major refactoring of django.core.management -- it's now a package rather ↵Adrian Holovaty
than a 1730-line single module. All django-admin/manage.py commands are now stored in separate modules. This is backwards-incompatible for people who used django.core.management functions directly git-svn-id: http://code.djangoproject.com/svn/django/trunk@5898 bcc190cf-cafb-0310-a4f2-bffc1f526a37