1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00
django/tests/apps
Aymeric Augustin ba7206cd81 Changed get_model to raise an exception on errors.
Returning None on errors required unpythonic error checking and was
inconsistent with get_app_config.

get_model was a private API until the previous commit, but given that it
was certainly used in third party software, the change is explained in
the release notes.

Applied the same change to get_registered_model, which is a new private
API introduced during the recent refactoring.
2013-12-28 20:53:00 +01:00
..
__init__.py
apps.py Fixed a couple flake8 warnings. 2013-12-27 21:06:28 +01:00
models.py Added basic tests for get_app_config[s]. 2013-12-26 19:21:02 +01:00
tests.py Changed get_model to raise an exception on errors. 2013-12-28 20:53:00 +01:00