1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

16899 Commits

Author SHA1 Message Date
Andrew Godwin
625c8d2461 Fixed #21784: Correctly decode stdin input for migration defaults 2014-01-18 10:54:35 +02:00
Claude Paroz
78c8f84dd8 Fixed #21740 -- Stopped using mutable default arguments in test client
Thanks Denver Coneybeare for the report and initial patch, and
Atala for another patch.
2014-01-18 10:54:35 +02:00
Tim Graham
7624715118 Fixed #21343 -- Noted many-to-many restrictions with intermediate model.
Thanks EvilDMP for the report.
2014-01-18 10:54:35 +02:00
Tim Graham
cc8e084ea5 Fixed #21768 -- Corrected TemplateView context section.
Thanks nedbatchelder for the report and claudep for the patch.
2014-01-18 10:54:35 +02:00
Tim Graham
fd998f067f Fixed #21727 -- Added some links to help clarify topics/auth/default.txt
Thanks daGrevis for the suggestion.
2014-01-18 10:54:35 +02:00
Tim Graham
7b9d498e5d Fixed #21747 -- Added {% elif %} to template topics guide.
Thanks gcc for the suggestion.
2014-01-18 10:54:35 +02:00
Kevin Wood
35ef0d47a9 Fix typo in storage docs 2014-01-18 10:54:35 +02:00
Martin Matusiak
d6e833384a Fixed typo in comment. 2014-01-18 10:54:34 +02:00
Marc Tamlyn
8ce828b2ed Fixed #21774 -- Isolate all test urls from eachother.
This (nearly) completes the work to isolate all the test modules from
each other. This is now more important as importing models from another
module will case PendingDeprecationWarnings if those modules are not in
INSTALLED_APPS. The only remaining obvious dependencies are:

- d.c.auth depends on d.c.admin (because of the is_admin flag to some
  views), but this is not so important and d.c.admin is in
  always_installed_apps
- test_client_regress depends on test_client. Eventually these should
  become a single module, as the split serves no useful purpose.
2014-01-18 10:54:34 +02:00
Marc Tamlyn
1dd7c65254 Remove unneded open(.., 'U') when on python 3.
Universal newlines is enabled by default on py3, and the usage of 'U' is
deprecated in py3.4.
2014-01-18 10:54:34 +02:00
Adrian Holovaty
f31df0edfe Removed BDFL stuff from docs/internals/contributing/bugs-and-features.txt 2014-01-18 10:54:34 +02:00
Adrian Holovaty
1309f6d58d Removed BDFLs section from docs/internals/committers.txt 2014-01-18 10:54:34 +02:00
Adrian Holovaty
9646cc162b Negligible change to my bio in docs/internals/committers.txt 2014-01-18 10:54:34 +02:00
Marc Tamlyn
5d9082e29b Be more careful about closing connections in mail tests. 2014-01-18 10:54:34 +02:00
Marc Tamlyn
6956cfe1f3 Undelete the return True removed in 4e0a2fe.
This is quite important otherwise we don't close our connections to the
SMTP server.
2014-01-18 10:54:34 +02:00
Marc Tamlyn
7d0f8bb7fa Add further workarounds for HTMLParser with Python 3.4.
Python 3.5 will change the default value of convert_charrefs, so 3.4
gives warnings if it's not present. This is slightly technical as 2.7
doesn't have the kwarg. Thankfully, we already have a bunch of
workarounds for different versions.
2014-01-18 10:54:34 +02:00
Aymeric Augustin
b21aa7649a Fixed #21770 -- Updated autocomplete for app-loading.
Thanks dfunckt for the report.
2014-01-18 10:54:34 +02:00
Aymeric Augustin
58b32bd0b1 Fixed #21477 -- Renamed db to using in pre/post_migrate signals. 2014-01-18 10:54:34 +02:00
Aymeric Augustin
d06997df35 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-18 10:54:33 +02:00
Aymeric Augustin
3777390713 Fixed a test that was failing with PostGIS.
Fixed #21452 again.

Forward-port of 18d75e07 from stable/1.6.x.
2014-01-18 10:54:32 +02:00
Aymeric Augustin
fda06d6552 Restored a test broken by overzealous PEP8 cleanup 2014-01-18 10:54:32 +02:00
Aymeric Augustin
8ac63d63ca 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-18 10:54:32 +02:00
Simon Charette
cc0d85660b Fixed flake8 issues. 2014-01-18 10:54:32 +02:00
Florian Apolloner
df6c96e376 Added license info for the weakref backports 2014-01-18 10:54:32 +02:00
Aymeric Augustin
b2baa1ff26 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-18 10:54:31 +02:00
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