| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2013-12-28 | Updated the AppCommand API to support apps without a models module. | Aymeric Augustin | |
| 2013-12-28 | Simplified the implementation of register_model. | Aymeric Augustin | |
| register_model is called exactly once in the entire Django code base, at the bottom of ModelBase.__new__: new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ModelBase.__new__ exits prematurely 120 lines earlier (sigh) if a model with the same name is already registered: if new_class._meta.apps.get_registered_model(new_class._meta.app_label, name): return (This isn't the exact code, but it's equivalent.) apps.register_model and apps.get_registered_model are essentially a setter and a getter for apps.all_models, and apps.register_model is the only setter. As a consequence, new_class._meta.apps.all_models cannot change in-between. Considering that name == new_class.__name__, we can conclude that register_model(app_label, model) is always called with such arguments that get_registered_model(app_label, model.__name__) returns None. Considering that model._meta.model_name == model.__name__.lower(), and looking at the implementation of register_model and get_registered_model, this proves that self.all_models[app_label] doesn't contain model._meta.model_name in register_model, allowing us to simplify the implementation. | |||
| 2013-12-27 | Amend test table name so it doesn't clash. | Ramiro Morales | |
| Refs #21692 and 3efd1b8b939. | |||
| 2013-12-27 | Merge pull request #2120 from ramiro/schema-creation-quoting | Ramiro Morales | |
| Fixed #21692 -- Quote table name when creating it. | |||
| 2013-12-27 | Avoided %r formatting on possibly unicode strings. | Aymeric Augustin | |
| The u prefix looks bad on Python 2. | |||
| 2013-12-27 | Fixed #21692 -- Quote table name when creating it. | Ramiro Morales | |
| 2013-12-27 | Refactored dumpdata with app configs instead of models modules. | Aymeric Augustin | |
| 2013-12-27 | Fixed a couple flake8 warnings. | Aymeric Augustin | |
| 2013-12-27 | Fixed #21650 -- Corrected bad advice for plural translation. | Tim Graham | |
| Thanks nedbatchelder and claudep. | |||
| 2013-12-27 | Created a constant for the migrations module name. | Aymeric Augustin | |
| Mostly for consistency with MODELS_MODULE_NAME; it's unlikely to change. | |||
| 2013-12-27 | Don't try to load app directory templates from apps with a path (eg eggs) | Florian Apolloner | |
| 2013-12-27 | Properly app_template_dirs when INSTALLED_APPS change. | Florian Apolloner | |
| 2013-12-26 | Fixed #21582 -- Corrected URL namespace example. | Tim Graham | |
| Thanks oubiga for the report. | |||
| 2013-12-27 | Switched setup.py to setuptools. | Florian Apolloner | |
| 2013-12-26 | Used app_config.verbose_name instead of app_label|capfirst. | Aymeric Augustin | |
| An admin view performed the capitalization in the template, unlike all others. Refs #10436. | |||
| 2013-12-26 | Fixed #21629 -- Added instructions for loading MySQL time zone definitions. | Tim Graham | |
| Thanks Aymeric for the suggestion. | |||
| 2013-12-26 | Added a test for Apps.has_app. | Aymeric Augustin | |
| 2013-12-26 | Fixed #21609 -- Amended CONTRIBUTING.rst pull request guidelines. | Tim Graham | |
| Thanks cjerdonek for the suggestion. | |||
| 2013-12-26 | Added file forgotten in previous commit, plus one more test. | Aymeric Augustin | |
| 2013-12-26 | Added tests for invalid values of INSTALLED_APPS. | Aymeric Augustin | |
| 2013-12-26 | Normalized exceptions raised by AppConfig.create. | Aymeric Augustin | |
| It raises ImportError whenever an entry in INSTALLED_APPS points (directly or indirectly via AppConfig.name) to a non-existing module and ImproperlyConfigured in all other cases. Catching ImportError and re-raising ImproperlyConfigured tends to make circular imports more difficult to diagnose. | |||
| 2013-12-26 | Made the AppConfig API marginally more consistent. | Aymeric Augustin | |
| Eliminated the app_ prefix that was more confusing than useful. | |||
| 2013-12-26 | Made unset_installed_apps reset the app registry state. | Aymeric Augustin | |
| Previously the _apps/models_loaded flags could remain set to False if set_installed_apps exited with an exception, which is going to happen as soon as we add tests for invalid values of INSTALLED_APPS. | |||
| 2013-12-26 | Added basic tests for get_app_config[s]. | Aymeric Augustin | |
| 2013-12-26 | Fixed #21206 -- No longer run discovery if the test label doesn't point to a ↵ | Preston Timmons | |
| package or directory. Thanks thepapermen for the report and Carl Meyer for the review. | |||
| 2013-12-26 | Turned apps.ready into a property. Added tests. | Aymeric Augustin | |
| 2013-12-26 | Beefed up the comments for AppConfig.all_models. | Aymeric Augustin | |
| 2013-12-26 | Removed a few gratuitous lambdas. | Aymeric Augustin | |
| 2013-12-26 | Added missing newline in previous commit. | Tim Graham | |
| 2013-12-26 | Fixed #21627 -- Added unicode_literals to changepassword command. | Jon Lønne | |
| Fixed a crash when executing changepassword command when the user object representation contained non-ASCII characters. | |||
| 2013-12-26 | Added 1.6.2 release note for 542198c1d | Claude Paroz | |
| 2013-12-25 | Merge pull request #2114 from levigross/master | Alex Gaynor | |
| Removed redundant line | |||
| 2013-12-25 | Removed redundant line | Levi Gross | |
| 2013-12-25 | Swapped app registry and app config API docs. | Aymeric Augustin | |
| Thanks David Larlet for the suggestion. Also fixed some Sphinx warnings and improved ReST markup. | |||
| 2013-12-25 | Merge pull request #2105 from funkybob/cleanup_get_post | Aymeric Augustin | |
| Used @cached_property for request.GET and COOKIES | |||
| 2013-12-25 | Unified listing of shell commands/code | Yaroslav Halchenko | |
| - use code-block:: bash - prefix the command with $ | |||
| 2013-12-25 | Fixed unittest typo | Levi Gross | |
| 2013-12-25 | Added versionadded annotations for redirect middleware attributes. | Tim Graham | |
| refs #19321 | |||
| 2013-12-25 | Fixed #21663 -- Added missing WSGIPythonPath in mod_wsgi config. | Tim Graham | |
| Thanks carrie.hazelton at altamiracorp.com for the report. | |||
| 2013-12-25 | Fixed #21669 -- Typo in docs/ref/forms/fields.txt. | Tim Graham | |
| Thanks alex_koval for the report. | |||
| 2013-12-24 | Copy-edited previous commit. | Aymeric Augustin | |
| Thanks Tim for the review. | |||
| 2013-12-24 | Added release notes for app loading changes. | Aymeric Augustin | |
| 2013-12-24 | Added a missing import and removed an unneeded import | Alex Gaynor | |
| 2013-12-24 | Merge pull request #2108 from jgastal/master | Alex Gaynor | |
| Typo fix for exception message. | |||
| 2013-12-24 | Typo fix for exception message. | Jonas Gastal | |
| 2013-12-24 | Updated a few doc paragraphs following the app-loading refactor. | Aymeric Augustin | |
| 2013-12-24 | Documented the Apps and AppConfig APIs. | Aymeric Augustin | |
| 2013-12-24 | Added more spatial predicates for prepared geometries | Claude Paroz | |
| GEOS 3.3 added crosses, disjoint, overlaps, touches and within predicates on prepared geometries. | |||
| 2013-12-24 | Dropped support for GEOS < 3.1 | Claude Paroz | |
| 2013-12-24 | Fixed #21662 -- Kept parent reference in prepared geometry | Claude Paroz | |
| Thanks Robert Scott for the report. | |||
