Berker Peksag
5d263dee30
Fixed #21674 -- Deprecated the import_by_path() function in favor of import_string().
...
Thanks Aymeric Augustin for the suggestion and review.
2014-02-08 11:12:19 -05:00
mlavin
a3e0d7753d
Adding tests for check_migrations.
2014-02-08 09:05:27 -05:00
mlavin
0ac13ecceb
Remove check_migrations from the runserver command and use the new checks framework to check for unapplied migrations. Don't check for migrations if the DATABASES setting is empty.
2014-02-08 09:01:59 -05:00
Claude Paroz
fcc21837dc
Removed extra backquote in field docs
2014-02-08 14:20:56 +01:00
Mitar
b041850853
Allowed more easily subclassing of BlockNode tags.
2014-02-08 07:22:11 -05:00
Tom Fifield
114b70ccf8
Fixed #21237 -- Added Australian English (en_AU) to locale conf
...
Adds Australian English (en_AU) to locale conf, which differs from
American English in date formatting and spelling, and continues
to diverge from British English in spelling (and first-day-of-week
according to the current en_GB locale format.py).
The transifex language project to match this patch has been requested.
2014-02-08 07:12:46 -05:00
Tim Graham
6c5a30b4e7
Added tests for LocalMemCache deadlocks. refs #20613 and refs #18541 .
...
Thanks Zach Smith for the patch.
2014-02-08 05:49:27 -05:00
Claude Paroz
02add43568
Fixed #21417 -- Expanded TEMPLATE_STRING_IF_INVALID in blocktrans
...
Thanks keturn for the reporti, Chris Medrela for details and
Tim Graham for the review.
Refs #19915 .
2014-02-08 11:06:54 +01:00
Loic Bistuer
8847a0c601
Fixed #16192 -- Made unique error messages in ModelForm customizable.
...
Overriding the error messages now works for both unique fields, unique_together
and unique_for_date.
This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS
since previously only fields' errors were customizable.
Refs #20199 .
Thanks leahculver for the suggestion.
2014-02-08 04:59:09 -05:00
Chris Wilson
65131911db
Fixed #21518 -- Made override_settings(ROOT_URLCONF) clear the resolver cache.
...
Thanks Aymeric Augustin and Simon Charette for reviews.
2014-02-07 15:29:25 -05:00
Jacob Kaplan-Moss
43510cffcb
Bumped version number for 1.7a2
2014-02-06 15:54:27 -06:00
Jacob Kaplan-Moss
84fb7b468e
Updated 1.6.2 release notes for release (and linkified tickets).
2014-02-06 15:34:22 -06:00
Vajrasky Kok
d3cf6cfacf
Fixed #17713 -- Renamed BaseDatabaseFeatures.allows_primary_key_0 to allows_auto_pk_0.
...
MySQL does allow primary key with value 0. It only forbids autoincrement
primary key with value 0.
Thanks Claude Paroz for the report.
2014-02-06 05:16:40 -05:00
Christopher Medrela
b22d6c47a7
Fixed #17005 -- Added CurrentSiteMiddleware to set the current site on each request.
...
Thanks jordan at aace.org for the suggestion.
2014-02-06 04:45:49 -05:00
Vajrasky Kok
c43c469a2e
Fixed #21731 -- Made javascript_quote escapes '</'.
2014-02-06 04:02:09 -05:00
Tim Graham
b17c75564f
Added missing items to 1.6.2 release notes.
2014-02-05 19:29:41 -05:00
Loic Bistuer
36f260341a
Extended the release notes for chainable Manager/QuerySet methods.
...
Refs #20625 .
2014-02-05 18:30:45 -05:00
Alex Gaynor
55d19d370f
Removed import which is now unused
2014-02-05 13:26:56 -08:00
Baptiste Mispelon
2dd88f0687
Added previous commit to 1.6.2 release notes.
2014-02-05 21:46:02 +01:00
Baptiste Mispelon
a878bf9b09
Revert "Fixed #20296 -- Allowed SafeData and EscapeData to be lazy"
...
This reverts commit 2ee447fb5f
.
That commit introduced a regression (#21882 ) and didn't really
do what it was supposed to: while it did delay the evaluation
of lazy objects passed to mark_safe(), they weren't actually
marked as such so they could end up being escaped twice.
Refs #21882 .
2014-02-05 21:22:40 +01:00
Baptiste Mispelon
a0fc7fa5df
Fixed ImportError when running contrib.gis tests without libgeos installed.
2014-02-05 21:17:01 +01:00
Loic Bistuer
f265c1ef13
Fixed gendered examples in the docs.
2014-02-05 14:58:50 -05:00
Florian Apolloner
297c009cf2
Simplified signal code.
...
Refs #21952
2014-02-05 20:57:40 +01:00
Anssi Kääriäinen
c29d6f7676
Fixed #21952 -- signals deadlock due to locking + weakref interaction
2014-02-05 20:57:40 +01:00
Marc Tamlyn
aea9faa146
Fix pep8 violation in migration template.
2014-02-05 14:39:44 +00:00
Alex Gaynor
6f504266b2
Removed two imports which are now unused
2014-02-04 15:45:18 -08:00
Carl Meyer
2b27224180
Fixed #21929 - Fixed test regression on Windows.
...
Thanks Michael Manfre for the report.
2014-02-04 13:14:41 -07:00
Claude Paroz
343dfff133
Removed the this_is_the_login_form hack
...
Refs #21911 . Now that we have a more traditional login form, we
don't need any more a special field telling us we are dealing with
the login form.
2014-02-04 20:02:28 +01:00
Claude Paroz
be0ad62994
Fixed #21911 -- Made admin views redirect to login when needed
...
Historically, the Django admin used to pass through the request
from an unauthorized access to the login view directly. Now we
are using a proper redirection, which is also preventing
inadvertantly changing data when POSTing login data to an admin
view when user is already authorized.
Thanks Marc Tamlyn and Tim Graham for the reviews.
2014-02-04 20:02:28 +01:00
Claude Paroz
5848bea9dc
Made staff_member_required redirect to login
...
Refs #21911 .
2014-02-04 20:02:28 +01:00
Anssi Kääriäinen
35cecb1ebd
Fixed #21748 -- join promotion for negated AND conditions
...
Made sure Django treats case .filter(NOT (a AND b)) the same way as
.filter((NOT a OR NOT b)) for join promotion.
2014-02-04 18:48:06 +02:00
Tim Graham
867f8fd6c7
Made some PEP8 fixes in docs/ref/forms/widgets.txt
...
Thanks Siecje.
2014-02-04 06:24:13 -05:00
Claude Paroz
6e0f1bc06d
Moved a GoogleMap test
2014-02-03 16:22:10 +01:00
David Fischer
e7e3435b4d
Fixed #21934 -- Added unicode support in GoogleMap class
2014-02-03 16:18:32 +01:00
Tim Graham
d4a5019bef
Reordered deprecation timeline and added back old info; refs #21920 .
2014-02-03 08:32:32 -05:00
Aymeric Augustin
ab922c5cd8
Fixed typo in 3ffeb931
.
2014-02-02 23:40:16 +01:00
Michael Manfre
e1d839237f
Make mysql's CursorWrapper a contextmanager.
2014-02-02 22:43:53 +01:00
Alex Gaynor
788cde326a
Merge pull request #2230 from manfre/patch-2
...
Fix regress added to migrations.test_operations.test_alter_field_pk_fk
2014-02-02 12:46:28 -08:00
Michael Manfre
ad913f242d
Fix regress added to migrations.test_operations.test_alter_field_pk_fk
2014-02-02 15:44:01 -05:00
Alex Gaynor
5616234d4d
Removed an unused import which snuck in.
2014-02-02 12:14:16 -08:00
Thomas Grainger
a42e04f77d
Used the proxied call to staticfiles_storage.url
2014-02-02 15:09:34 -05:00
Claude Paroz
9ab798a8d8
Fixed #21930 -- Only import add_srs_entry if GDAL is installed
...
Fixed regression introduced by fabc678f93
. Thanks Michael Manfre
for the report.
2014-02-02 20:05:35 +01:00
Aymeric Augustin
54bfa4caab
Merge pull request #2154 from manfre/close-cursors
...
Fixed #21751 -- Explicitly closed cursors.
2014-02-02 10:37:27 -08:00
Michael Manfre
3ffeb93186
Ensure cursors are closed when no longer needed.
...
This commit touchs various parts of the code base and test framework. Any
found usage of opening a cursor for the sake of initializing a connection
has been replaced with 'ensure_connection()'.
2014-02-02 12:47:21 -05:00
Michael Manfre
0837eacc4e
Made SQLCompiler.execute_sql(result_type) more explicit.
...
Updated SQLUpdateCompiler.execute_sql to match the behavior described in
the docstring; the 'first non-empty query' will now include all queries,
not just the main and first related update.
Added CURSOR and NO_RESULTS result_type constants to make the usages more
self documenting and allow execute_sql to explicitly close the cursor when
it is no longer needed.
2014-02-02 12:47:06 -05:00
Aymeric Augustin
ab2f21080d
Added a note about a possible name clash.
...
Thanks Russell for the advice.
2014-02-02 15:31:34 +01:00
Aymeric Augustin
b5fbdf97db
Fixed typo.
2014-02-02 15:16:55 +01:00
Aymeric Augustin
76ff266df1
Avoided importing models from django.contrib.admin.
...
Fixed #21923 . Refs #21719 .
2014-02-01 20:38:15 +01:00
Aymeric Augustin
f9698c4391
Suppressed the if Site._meta.installed
pattern.
...
The purpose of this construct is to test if the django.contrib.sites
application is installed. But in Django 1.9 it will be forbidden to
import the Site model when the django.contrib.sites application isn't
installed.
No model besides Site used this pattern.
Refs #21719 , #21923 .
2014-02-01 20:38:15 +01:00
Aymeric Augustin
4a488c1483
Silenced a spurious warning.
...
Thanks Timo for the report. Regression from 2f65b8e1
. Refs #21794 .
2014-02-01 19:42:41 +01:00