Commit Graph

16874 Commits

Author SHA1 Message Date
Aymeric Augustin 94f90a1784 Fixed a test isolation issue. Refs #17062.
This test could change settings.DATABASES['default']['TIME_ZONE'] and
didn't restore the previous value.
2014-01-18 10:54:31 +02:00
Anssi Kääriäinen 6c2e550c35 Fixed #21413 -- resolve_columns fields misalignment 2014-01-18 10:54:31 +02:00
Aymeric Augustin c0c480ed40 Fixed #21756 -- Skipped two timezone-related tests on Windows.
Windows cannot use a time zone other than the default time zone.

Thanks manfre for the report.
2014-01-18 10:54:31 +02:00
Claude Paroz bd5a763bc2 Fixed #21547 -- Updated GeoDjango tutorial with PostGIS 2 output
Thanks awilliams at cironline.org for the report.
2014-01-18 10:54:31 +02:00
Claude Paroz 8116726173 Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with DateTimeField
Thanks Tim Graham for the review.
2014-01-18 10:54:31 +02:00
Loic Bistuer 6d1ecc7f40 Fixed #21750 -- Fixed regression introduced by 4befb30.
Validating STATIC_ROOT in StaticFilesStorage.__init__ turned out to be
problematic - especially with tests - because the storage refuses to work even
if there are no actual interactions with the file system, which is backward
incompatible.

Originally the validation happened in the StaticFilesStorage.path method, but
that didn't work as expected because the call to FileSystemStorage.__init__
replaced the empty value by a valid path. The new approach is to move back the
check to the StaticFilesStorage.path method, but ensure that the location
attribute remains None after the call to super.

Refs #21581.
2014-01-18 10:54:30 +02:00
Claude Paroz cf15bb4036 Fixed #21752 -- Prevented custom widget step attribute to be overwritten
Thanks orcein at gmail.com for the report.
2014-01-18 10:54:30 +02:00
Florian Apolloner 5970ef0862 Fixed removal of signal receivers in Python 3.4
Make use of `weakref.finalize` and `weakref.WeakMethod` on python 3.4.
Simplified the removal of receivers, the old function looked overly
complicated.

Many thanks go to Antoine Pitrou for helping me to debug and explain all
the failures I ran into while writing that patch.
2014-01-18 10:54:29 +02:00
Anssi Kääriäinen eb1c8ce164 Release notes and other minor docs changes 2014-01-14 19:00:12 +02:00
Anssi Kääriäinen 11501c29c9 Forgot to add custom_lookups tests in prev commit 2014-01-12 20:53:03 +02:00
Anssi Kääriäinen 83173b960e Renamed Extract -> Transform 2014-01-12 19:59:12 +02:00
Anssi Kääriäinen 3b18d9f3a1 Removed suggestion of temporary lookup registration from docs 2014-01-12 19:51:53 +02:00
Anssi Kääriäinen 21d0c7631c Merge pull request #2 from mjtamlyn/lookups_3
Reworked custom lookups docs.
2014-01-12 09:38:23 -08:00
Marc Tamlyn f2dc4429a1 Reworked custom lookups docs.
Mostly just formatting and rewording, but also replaced the example
using ``YearExtract`` to  use an example which is unlikely to ever be
possible directly in the ORM.
2014-01-12 15:44:15 +00:00
Anssi Kääriäinen 2509006506 Removed unused import 2014-01-12 13:19:13 +02:00
Anssi Kääriäinen 4fba5dfaa0 Added docs to index 2014-01-11 22:34:41 +02:00
Anssi Kääriäinen 6d53963f37 Dead code removal 2014-01-11 22:10:24 +02:00
Anssi Kääriäinen f9cc039007 A new try for docs 2014-01-11 19:00:43 +02:00
Anssi Kääriäinen 33aa18a6e3 Renamed get_cols to get_group_by_cols 2014-01-11 14:57:12 +02:00
Anssi Kääriäinen c7d5f8661b Altered query string customization for backends vendors
The new way is trying to call first method 'as_' + connection.vendor.
If that doesn't exist, then call as_sql().

Also altered how lookup registration is done. There is now
RegisterLookupMixin class that is used by Field, Extract and
sql.Aggregate. This allows one to register lookups for extracts and
aggregates in the same way lookup registration is done for fields.
2014-01-11 14:45:53 +02:00
Anssi Kääriäinen 90e7004ec1 Merge branch 'master' into lookups_3 2014-01-11 13:21:01 +02:00
Anssi Kääriäinen 66649ff891 Some rewording in docs 2014-01-11 13:16:01 +02:00
Alex Gaynor f7c2c0a3be Removed a man page for a command that was removed 2014-01-10 15:23:06 -08:00
Aymeric Augustin 3326a412cc Deprecated importing a model before loading its application.
Refs #21719, #21680.
2014-01-10 23:43:10 +01:00
Marc Sibson 81bb8d1220 Fixed docstring typo in django/forms/forms.py. 2014-01-10 08:33:30 -05:00
Michael Blatherwick 270c9fe488 Fixed typo in docstrings of MonthArchiveViews. 2014-01-10 08:25:22 -05:00
Unai Zalakain 9eb16031ca Fixed #12571 -- Attached originating WSGIRequest to test client responses.
Originating WSGIRequests are now attached to the ``wsgi_request`` attribute of
the ``HttpResponse`` returned by the testing client.

Thanks rvdrijst for the suggestion.
2014-01-09 18:50:03 -05:00
Andrew Godwin 9ae17d994b Make test stronger to hopefully fix odd Jenkins failure 2014-01-08 21:20:29 +00:00
Anssi Kääriäinen fa250c2cf9 Merge pull request #2151 from manfre/ticket-21746
Fixed #21746 - Fixed test_get_reverse_on_unsaved_object test.
2014-01-08 08:08:02 -08:00
Michael Manfre 1dbbdb29a0 Fixed #21746 - Fixed test_get_reverse_on_unsaved_object test.
Test will no longer attempt to insert multiple NULL rows in to a unique
field if the database doesn't support it.
2014-01-08 10:52:13 -05:00
Anssi Kääriäinen 96911261ea Merge pull request #2150 from manfre/ticket-21745
Fixed #21745 - Feature check UniqueTest.test_unique_null
2014-01-08 07:09:45 -08:00
Michael Manfre 8845ab62f5 Fixed #21745 - Feature check UniqueTest.test_unique_null 2014-01-08 09:53:40 -05:00
Andrew Godwin f343f5e538 Fix wording of auth superuser post-migrate handler 2014-01-08 13:06:53 +00:00
Andrew Godwin 64887c644a Fixed #21142: Dependency failures on unmigrated apps. 2014-01-08 13:00:12 +00:00
maurycyp 0423e0796a Changed parent class calls to super in Field subclasses 2014-01-08 06:54:37 -05:00
Aymeric Augustin 2dcde523ab Avoided catching ImproperlyConfigured on django.setup().
Fixed #21737. Thanks Florian for the report.

Also removed redundant imports in that file.
2014-01-06 23:01:29 +01:00
Aymeric Augustin 6a320cc14a Fixed #21718 -- Renamed has_app to is_installed. 2014-01-06 22:48:41 +01:00
Aymeric Augustin b57c48d012 Added catalogs for apps that didn't have any translations. 2014-01-05 21:18:33 +01:00
Aymeric Augustin 27afd302c6 Fixed #21675 -- Added app configs for contrib apps. 2014-01-05 21:18:33 +01:00
Aymeric Augustin 021b0b0029 Added an app-loading feature to the release notes. 2014-01-05 21:10:15 +01:00
Aymeric Augustin f630373b92 Fixed #21711 -- Enforced unicity of model names. 2014-01-05 20:52:53 +01:00
Aymeric Augustin f5f7617167 Renamed a couple models to prevent duplicate names. 2014-01-05 20:52:46 +01:00
Aymeric Augustin 5d9da7597e Fixed app registry cleanup in app-loading tests. 2014-01-05 20:52:46 +01:00
Aymeric Augustin d4b059d3eb Fixed test for models in non-installed apps.
Models are now attached to any application they're defined in. Since
not_installed was inside app_loading, these models were mistakenly
attached to app_loading. The test that used them passed accidentally
when run after EggLoadingTest because that class' tearDown() method
replaces apps.all_models['app_loading'] by a copy of itself, while
it should remain the same as apps.app_configs['app_loading'].models.
2014-01-05 20:52:46 +01:00
Aymeric Augustin a7588e2e22 Removed useless model definitions.
Surprisingly, this commit doesn't change any behavior at all. When a
model is defined with the same name as another model in the same app,
the definition of the first class is bound to the name of the class
regardless of the definition of the second class.
2014-01-05 20:52:46 +01:00
Aymeric Augustin 2692a0c621 Fixed `python scripts/manage_translations.py update_catalogs`.
It used to generate languages 'e' and 'n'.
2014-01-04 23:08:27 +01:00
Claude Paroz c717ebbfec Fixed #21730 -- Removed superfluous db_index in custom auth docs
Thanks rafalp for the report.
2014-01-04 16:11:21 +01:00
Tim Graham 4d27d311f6 Fixed a sentence in the session security docs; thanks claudep. 2014-01-03 12:02:58 -05:00
Tianyi Wang e6800ea136 Fixed #21728 -- Corrected an inadvertent path change in docs/intro/contributing.txt. 2014-01-03 11:59:15 -05:00
Claude Paroz 196f0a356d Suppressed ResourceWarning in files tests 2014-01-03 13:37:14 +01:00