Simon Charette
10e3faf191
Fixed #19774 -- Deprecated the contenttypes.generic module.
...
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368 .
Thanks to Ramiro, Carl and Loïc for the review.
2014-01-26 14:42:30 -05:00
Simon Charette
c3881944e8
Fixed some missing/extraneous new line warnings.
2014-01-26 14:32:01 -05:00
Wojciech Banaś
8f2f48ecc9
Fixed #21866 -- Replaced "COMMIT" in managmement command SQL with backend hook.
2014-01-26 12:42:41 -05:00
Aymeric Augustin
2b154ae280
Fixed #21880 -- Added missing items to django.utils.timezone.__all__.
...
Thanks Wim for the report.
2014-01-26 15:35:22 +01:00
Aymeric Augustin
4f03b718f7
Fixed #21877 -- Renamed django.apps.base to config.
2014-01-26 13:17:03 +01:00
Aymeric Augustin
f901b4d6c8
Took advantage of the new get_model API. Refs #21702 .
2014-01-26 13:08:05 +01:00
Aymeric Augustin
3c47786cb9
Fixed #21702 -- get_model('app_label.ModelName').
...
Also added tests for get_model.
2014-01-26 13:01:09 +01:00
Aymeric Augustin
9ffab9cee1
Moved RequestSite and get_current_site.
...
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.
2014-01-26 08:50:47 +01:00
Carl Meyer
ca95f8e435
Moved sys.path-extending decorator to django.test.utils and used throughout test suite.
...
Thanks Aymeric for the suggestion.
2014-01-25 22:50:40 -07:00
Carl Meyer
966b186981
Fixed #17304 -- Allow single-path and configured-path namespace packages as 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.
2014-01-25 19:37:05 -07:00
Aymeric Augustin
ee4b806a85
Fixed #21873 -- Removed duplicate import.
...
Thanks Sephi for the report.
2014-01-25 23:22:03 +01:00
Jannis Leidel
b9e0ea3cb4
Merge pull request #2211 from carljm/t21867
...
Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
2014-01-25 03:57:29 -08:00
Aymeric Augustin
2ff93e027c
Fixed #21829 -- Added default AppConfigs.
...
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
2014-01-25 10:41:56 +01:00
Carl Meyer
29ddae7436
Fixed #21871 -- Fixed Apps.is_installed() for apps with custom label.
...
Thanks Aymeric for design discussion.
2014-01-24 20:07:14 -07:00
Andrew Godwin
f5f556dba3
Unroll choices iterators in field deconstruction
2014-01-25 00:23:28 +00:00
Andrew Godwin
2a30b39f40
Fixed #21783 : More SQLite default fun with nulls.
2014-01-25 00:10:25 +00:00
Carl Meyer
f56c88a8ee
Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
...
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.
2014-01-24 15:32:03 -07:00
Arne Brodowski
06bd181f97
Fixed typo in error message.
2014-01-24 17:40:43 +01:00
Arne Brodowski
38be3cf5e4
Fixed #21870 -- Admin check for list_editable_item
...
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.
2014-01-24 17:40:24 +01:00
Andrew Godwin
4b3b25104d
Fix soft-apply detection of migrations with dependencies
2014-01-24 12:26:38 +00:00
Anssi Kääriäinen
78a2617703
Fixed #21787 -- regression in MTI .exclude() queries
2014-01-24 10:10:17 +02:00
James Bennett
8be9a250c1
[1.7.x] Bump version number for 1.7 alpha 1.
2014-01-22 21:48:37 -06:00
Loic Bistuer
c3fdeb28ff
Fixed #21846 -- Made NestedObjects handle related_name with %(app_label)s or %(class)s.
2014-01-22 09:13:15 -05:00
Andrew Godwin
a5ec11c4bb
Merge pull request #2198 from Markush2010/ticket21852
...
Fixed #21852 -- Make migration writer serialize iterators
2014-01-22 03:45:30 -08:00
Oliver George
a4fbdcdf66
Fixed #21850 -- Made GeometryField.geodetic case insensitive
2014-01-22 09:26:38 +01:00
Markus Holtermann
047394f79c
Fixed #21852 -- Make migration writer serialize iterators
2014-01-22 09:21:54 +01:00
Tim Graham
8606785faa
Merge pull request #2186 from zemanel/master
...
Fixed typo on docstring
2014-01-21 04:46:14 -08:00
Russell Keith-Magee
494b408041
Corrected problem with MySQL checks handler and related fields.
2014-01-21 18:37:49 +08:00
Carl Meyer
6070a5d6a6
Fixes #21833 -- Fix UserSettingsHolder.is_overridden() and add tests.
2014-01-20 20:25:33 -07:00
Russell Keith-Magee
56516ade5e
Refs #21831 -- Softened the TestClient dependency on contrib.auth.
...
This is to prevent an import of django.test causing an import (and thus
an implicit checks regisration) for an app that may not be in
`INSTALLED_APPS`.
Better fixes may be possible when #20915 and/or #21829 are addressed.
Thanks to @carljm for the report.
2014-01-21 08:51:23 +08:00
Jannis Leidel
8efd20f96d
Added ManifestStaticFilesStorage to staticfiles contrib app.
...
It uses a static manifest file that is created when running
collectstatic in the JSON format.
2014-01-20 19:32:07 +01:00
José Moreira
8649833cf8
fixed typo on docstring
2014-01-20 16:33:11 +00:00
Anssi Kääriäinen
6ab58e3605
Fixed a couple of deprecation warnings
2014-01-20 13:12:15 +02:00
Anssi Kääriäinen
1c360dbbf5
Use date_extract_sql() for DateFields
...
Refs #21821
2014-01-20 10:52:58 +02:00
Anssi Kääriäinen
b86321e9a4
Fixed regex lookup on Oracle
...
Refs #21821
2014-01-20 10:52:58 +02:00
Anssi Kääriäinen
a9f1711518
Fixed Oracle in lookup when more than 1000 params
...
Refs #21821 .
2014-01-20 10:52:57 +02:00
Claude Paroz
457c16d0d6
Fixed multi geometries editing in OpenLayers widget
2014-01-20 09:19:23 +01:00
Russell Keith-Magee
a029efca44
Removed an inactive system check for upload_to.
...
Thanks to Simon Charette for the eagle eyes.
2014-01-20 12:31:35 +08:00
Alex Gaynor
be8173af51
Fixed a small collection of flake8 violations that had snuck in
2014-01-19 21:15:31 -06:00
Russell Keith-Magee
d818e0c9b2
Fixed #16905 -- Added extensible checks (nee validation) framework
...
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579 , fixes #3055 , fixes #19844 .
2014-01-20 10:45:21 +08:00
Andrew Godwin
6bbb820014
Fixed #21290 : Documented migration serializing and improved error
2014-01-19 19:27:30 +00:00
Baptiste Mispelon
34263c67b4
Moved the loader tags registration with the other builtins.
2014-01-19 20:11:32 +01:00
Andrew Godwin
a68f325791
Fixed #21638 : Validators are now comparable, stops infinite user mig'ns
2014-01-19 18:56:16 +00:00
Andrew Godwin
3f1a008266
Fixed #21664 : Multi-table inheritance was duplicating _ptr fields
2014-01-19 18:35:49 +00:00
Andrew Godwin
1f5268a01f
Fixed #21786 : Bad behaviour when mixins + abstract bases for migrations
2014-01-19 18:09:52 +00:00
Andrew Godwin
af4a8478e4
Fixed #21783 : (again) Found second source of bug, also squashed it.
2014-01-19 17:43:31 +00:00
Andrew Godwin
e8d4aed3b9
Merge pull request #1681 from loic/migrations.format
...
Fixed #21323 -- Improved readability of serialized Operation.
2014-01-19 09:30:27 -08:00
Loic Bistuer
374faa4721
Fixed #21323 -- Improved readability of serialized Operation.
2014-01-20 00:16:07 +07:00
Andrew Godwin
1ea96acaf5
Fix unicode default input on py3
2014-01-19 17:14:31 +00:00
Andrew Godwin
e802c97581
Fixed #21783 : Use defaults for adding NOT NULL on sqlite
2014-01-19 17:10:24 +00:00