| Age | Commit message (Collapse) | Author |
|
|
|
Broke InspectDBTestCase.test_field_types in two:
- a test_number_field_types, which now passes on Oracle too
- a test_field_types, for all non-numeric fields, which is still expected to fail
Also made some pep8 fixes in the tests file. Refs #19884
Thanks Tim Graham for review.
|
|
Fix typo CRSF -> CSRF
|
|
|
|
Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean
Refs #19884
|
|
It seems this case was fixed somewhere between 1.5.x and 1.6.x. I added
tests as I wasn't able to find any tests for these cases. Refs #21879
|
|
When moving code around from sql.where to lookups six.moves.xrange
import was forgotten. The xrange import is needed on Python 3.
|
|
|
|
|
|
'django.db.models.manager'.
The combination of BaseManager.from_queryset() and RenameMethodsBase results in
Manager.__module__ having the wrong value. This can be an issue when trying to
pickle the Manager class.
|
|
Wherever possible this filesystem path is derived automatically from the app
module's ``__path__`` and ``__file__`` attributes (this avoids any
backwards-compatibility problems).
AppConfig allows specifying an app's filesystem location explicitly, which
overrides all autodetection based on ``__path__`` and ``__file__``. This
permits Django to support any type of module as an app (namespace packages,
fake modules, modules loaded by other hypothetical non-filesystem module
loaders), as long as the app is configured with an explicit filesystem path.
Thanks Aymeric for review and discussion.
|
|
Fixed #21688. Refs https://github.com/django/django/pull/1147.
|
|
The translation.override context manager cleans up after itself. As a
consequence this mixin isn't needed any more in many cases.
|
|
|
|
|
|
|
|
|
|
|
|
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
|
|
|
|
|
Thanks Wim for the report.
|
|
|
|
|
|
Also added tests for get_model.
|
|
|
|
Following the app-loading refactor, these objects must live outside of
django.contrib.sites.models because they must be available without
importing the django.contrib.sites.models module when
django.contrib.sites isn't installed.
Refs #21680. Thanks Carl and Loic for reporting this issue.
|
|
test suite.
Thanks Aymeric for the suggestion.
|
|
|
|
apps.
Also document the conditions under which a namespace package may or may not be
a Django app, and raise a clearer error message in those cases where it may not
be.
Thanks Aymeric for review and consultation.
|
|
Thanks Sephi for the report.
|
|
Clarified that queries in autocommit mode are committed immediately
only if a transaction has not already been started. Added to the
main transaction docs that Django's TestCase class implicitly wraps
its tests in transactions.
|
|
Added ticket #14007 contributors to AUTHORS
|
|
BooleanFields are stored as TINYINT(1) on MySQL.
|
|
|
|
Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
|
|
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
|
|
Thanks Aymeric for design discussion.
|
|
|
|
|
|
AppStaticStorage only provided one thing over FileSystemStorage, which was
taking an app name (import path) and translating it into a filesystem
path. This is now something that should be done via app_config.path instead,
leaving AppStaticStorage with no reason for existence. It should be safe to
remove, as it was undocumented internal API.
There was some kind of feature in the AppDirectoriesFinder code related to a
"prefix" attribute on the storage class used by AppDirectoriesFinder. Since
this feature was undocumented, untested, and of unclear purpose, I removed it
as well.
|
|
|
|
During the admin check for list_editable _check_list_editable_item
should return an empty list if all checks pass. Additionally the
Testcase test_readonly_and_editable was changed to test what the
name implies instead of duplicating the logic of test_readonly.
|
|
Thanks tragiclifestories for the report.
|
|
|
|
|
|
|
|
Maths is hard.
|
|
We fork at beta. This branch will be recreated when the first beta is created.
It has been merged in to maintain the version number bump and tag.
|
|
We should branch after the first beta.
|