Aymeric Augustin
d674fe6dee
Used a regular lock for app registry population.
...
Since the app registry is always populated before the first request is
processed, the situation described in #18251 for the old app cache
cannot happen any more.
Refs #18251 , #21628 .
2014-01-12 22:08:46 +01:00
Aymeric Augustin
fbe1abac4a
Fixed #21453 -- Enabled autocommit before calling init_connection_state.
...
Also ensured the transaction state is clean on Oracle while I was there.
This change cannot be backported to 1.6 because it's
backwards-incompatible for custom database backends.
2014-01-12 20:31:07 +01:00
Simon Charette
c726598c3d
Fixed flake8 issues.
2014-01-12 13:40:37 -05:00
Florian Apolloner
56ab5f52c7
Merge pull request #2163 from apollo13/signals
...
Signals
2014-01-12 09:43:41 -08:00
Florian Apolloner
7959aff8be
Added license info for the weakref backports
2014-01-12 18:35:15 +01:00
Aymeric Augustin
1afe748832
Fixed #21452 -- Non-autocommit connections to PostgreSQL.
...
When settings.DATABASES['default']['AUTOCOMMIT'] = False, the connection
wasn't in autocommit mode but Django pretended it was.
Thanks Anssi for analysing this issue.
Refs #17062 .
2014-01-12 18:28:51 +01:00
Anssi Kääriäinen
9918c11114
Fixed #21413 -- resolve_columns fields misalignment
2014-01-12 18:07:39 +02:00
Claude Paroz
0179852d7f
Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with DateTimeField
...
Thanks Tim Graham for the review.
2014-01-11 15:50:34 +01:00
Loic Bistuer
1e9e7351f8
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-11 08:20:28 -05:00
Claude Paroz
18374c1d8c
Fixed #21752 -- Prevented custom widget step attribute to be overwritten
...
Thanks orcein at gmail.com for the report.
2014-01-11 14:08:04 +01: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
Florian Apolloner
52cad43bc3
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-09 09:27:54 +01: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
f630373b92
Fixed #21711 -- Enforced unicity of model names.
2014-01-05 20:52:53 +01:00
Florian Apolloner
3bc6b18cb9
Fixed selenium failure.
...
This fixes (at least according to tests on the ci itself)
admin_widgets.tests.RelatedFieldWidgetSeleniumFirefoxTests.test_foreign_key_using_to_field
(http://ci.djangoproject.com/job/Django/database=mysql_gis,python=python2.7/3792/testReport/junit/admin_widgets.tests/RelatedFieldWidgetSeleniumFirefoxTests/test_foreign_key_using_to_field/ )
The cause for this issue seems to be that wait_page_loaded was executed before click fired
and as such no profile got saved (again just an educated guess, but with this fix I can no
longer reproduce it -- fingers crossed).
2014-01-03 11:29:37 +01:00
Florian Apolloner
7d0a519032
Revert "Fixed #21227 -- Added workaround for selenium test failures"
...
This reverts commit 08c9ab5a0f
.
2014-01-03 00:44:49 +01:00
Florian Apolloner
b1a399b864
Removed unneeded import.
2014-01-03 00:42:03 +01:00
Florian Apolloner
ed2828f0a0
Fixed a few flaky selenium tests.
...
Many thanks go to David Burns (@AutomatedTester) for helping me understand
css selectors and pointing me towards the correct selenium methods.
2014-01-03 00:36:50 +01:00
Claude Paroz
aaf5b3e7aa
Moved django.setup() to ManagementUtility
...
In get_commands, setup() might already have been called, for example
when the management command is called through call_command. Moving
setup() to ManagementUtility so as it is only called when the command
is run from command line.
2014-01-02 20:47:40 +01:00
Aymeric Augustin
30a42a4fc3
Adjusted previous commit for Python 3.
2014-01-01 19:12:46 +01:00
Alex Gaynor
791142e8b3
Several small whitespace fixes for styleguide/flake8 violations
2014-01-01 09:37:52 -08:00
Aymeric Augustin
0ce945a671
Fixed #21018 -- Reversed precedence order for management commands.
2014-01-01 18:11:15 +01:00
Aymeric Augustin
f17d00278e
Wiped get_commands() cache when INSTALLED_APPS changes.
...
Refs #21018 , #21688 .
2014-01-01 18:11:09 +01:00
Preston Timmons
18d962f2e6
Fixed #21206 -- Fixed test discovery without labels
...
Added test to verify an empty label performs discovery on the current
working directory.
2014-01-01 12:40:16 +01:00
Claude Paroz
fbbe7ca30c
Readded field unadvertantly removed in fedfd5030
2014-01-01 12:07:43 +01:00
Aymeric Augustin
6edd5b0793
Fixed a few issues in previous commit.
2014-01-01 11:52:56 +01:00
Aymeric Augustin
fecfd50300
Properly assigned app_label to GIS test models.
...
Used abstract inheritance to cut down on code repetition.
2014-01-01 11:01:46 +01:00
Loic Bistuer
4befb3015c
Fixed #21581 -- Fixed a number of issues with collectstatic.
...
When STATIC_ROOT wasn't set, collectstatic --clear would delete
every files within the current directory and its descendants.
This patch makes the following changes:
Prevent collectstatic from running if STATIC_ROOT isn't set.
Fixed an issue that prevented collectstatic from displaying the
destination directory.
Changed the warning header to notify when the command is run
in dry-run mode.
2013-12-31 14:58:49 -05:00
Claude Paroz
b8e3373f45
Fixed #21714 -- Moved logging configuration to global setup()
...
Thanks Aymeric Augustin for the report and the review.
2013-12-31 18:35:00 +01:00
Aymeric Augustin
1d23d766ab
Renamed AppConfig.setup to ready.
...
Thanks Jannis and Marc for the feedback.
Fixed #21717 .
2013-12-31 18:04:54 +01:00
Aymeric Augustin
63137a8304
Enforced unicity of app labels.
...
Fixed #21679 .
2013-12-31 18:04:54 +01:00
Aymeric Augustin
c40209dcc0
Made it possible to change an application's label in its configuration.
...
Fixed #21683 .
2013-12-31 17:30:58 +01:00
Aymeric Augustin
5dfec4e23b
Checked unicity of app config names when populating the app registry.
...
This check will miss duplicates until the check for duplicate labels is
added.
Refs #21679 .
2013-12-31 17:29:04 +01:00
Aymeric Augustin
553500133c
Removed an obsolete unicity check.
...
It doesn't account for app configs.
Refs #21679 .
2013-12-31 17:29:04 +01:00
Claude Paroz
d0eeddd6fc
Fixed #21716 -- Only passed arguments supported by ogrinspect
...
Thanks Marco Badan for the report.
2013-12-31 16:26:44 +01:00
Aymeric Augustin
75220d3b5d
Small style cleanup.
2013-12-31 16:24:40 +01:00
Aymeric Augustin
f46603f830
Fleshed out release notes for app loading.
...
Fixed #21715 .
2013-12-31 15:27:25 +01:00
Aymeric Augustin
80004c7cc0
Turned django.db.models.app_cache_ready back into a method.
...
Thanks Anssi for noticing this mistake in a refactoring.
2013-12-31 15:27:25 +01:00
Aymeric Augustin
a95f74e707
Oops.
2013-12-31 13:16:51 +01:00
Aymeric Augustin
6b172a6d6d
Called django.setup() explicitly in management commands.
...
This avoids duplicating code.
2013-12-31 13:11:05 +01:00
Thomas Schreiber
7b119c1c77
only attempt to create the postgis extension when it does not already exist
2013-12-31 11:34:03 +01:00