Andrew Godwin
0bcfc068b0
Add second shortener to create_index_name for very long columns
2012-09-24 13:23:25 +01:00
Andrew Godwin
d146b250ae
Remove one of the last traces of South
2012-09-24 13:18:14 +01:00
Andrew Godwin
3a338d00ec
Add comment to usage of m2m_reverse_field_name
2012-09-24 13:17:38 +01:00
Andrew Godwin
49dc1e7d28
Fix altering of indexes alongside uniques
2012-09-24 13:15:08 +01:00
Andrew Godwin
0354cecbfd
Fix nullability changing code
2012-09-24 12:56:17 +01:00
Andrew Godwin
588b839b26
Fix NOT NULL sql for MySQL
2012-09-24 12:52:43 +01:00
Andrew Godwin
e3c9742cd4
Fix error message for unique constraints
2012-09-24 12:51:50 +01:00
Andrew Godwin
1a6d07783d
Do cheaper check for column having a type.
2012-09-24 12:19:32 +01:00
Andrew Godwin
f0e09e27f6
Fix non-executed SQL
2012-09-24 12:16:16 +01:00
Andrew Godwin
3074243a5f
Fix introspection PK comment more.
2012-09-22 01:22:58 +01:00
Andrew Godwin
9234131c05
Remove weird syncdb managed thing - no longer needed.
2012-09-22 01:22:43 +01:00
Andrew Godwin
45e5eedea9
Remove special-casing for proxy/unmanaged models
2012-09-22 01:17:08 +01:00
Andrew Godwin
49d1e6b0e2
Remove AppCache state handling, replace with swappable caches
2012-09-22 00:47:04 +01:00
Andrew Godwin
dbc17d035b
Un-borg-ify AppCache
2012-09-21 23:36:26 +01:00
Andrew Godwin
ae6ffd2e7e
Stylistic fixes: triple-quoted docstrings, more comments
2012-09-18 10:37:30 +01:00
Andrew Godwin
c5e2ecae69
Fix bug in get_indexes affecting the tests
2012-09-17 23:45:00 +01:00
Andrew Godwin
d0b3536964
More schema test fixing
2012-09-17 21:16:36 +01:00
Andrew Godwin
9313dea700
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/db/backends/mysql/base.py
django/db/backends/postgresql_psycopg2/base.py
2012-09-17 20:00:14 +01:00
Andrew Godwin
dbf8b93c52
Fix app loading/test interaction
2012-09-17 19:57:23 +01:00
Florian Apolloner
d21f3d9b17
Only update `last_login` instead of the whole user object in `update_last_login`.
2012-09-17 19:52:22 +02:00
Anssi Kääriäinen
f399a804c9
Fixed #17485 regression -- only + select_related interaction
...
When doing deeper than one level select_related() + only queries(), the
code introduced in b6c356b7bb
errored
incorrectly.
Thanks to mrmachine for report & test case.
2012-09-16 22:58:40 +03:00
Julien Phalip
c555741aa7
Fixed #18530 -- Fixed a small regression in the admin filters where wrongly formatted dates passed as url parameters caused an unhandled ValidationError. Thanks to david for the report.
2012-09-15 16:20:56 -07:00
Claude Paroz
c7f44ae085
Fixed #17948 -- Isolated auth tests from custom template loaders
...
Thanks andrey@kostenko.name for the report.
2012-09-15 21:39:08 +02:00
Claude Paroz
65793d714c
Used ST_AsText for testing PostGIS raw query
...
AsText will not be supported in further versions of PostGIS (>=2).
2012-09-15 12:02:28 +02:00
Tim Graham
87c06fa4f4
Merge pull request #364 from martey/ticket_18933
...
Fixed #18933 - Fixes code example for cycle in docstring.
2012-09-13 12:23:28 -07:00
Claude Paroz
690170a8b9
Removed unused quoting/encoding in gis db backend
2012-09-13 20:17:52 +02:00
Claude Paroz
7e5ebcce53
Fixed #18795 -- Fixed failing GeoDjango tests
...
Proj.4 and SRS strings may slightly vary depending on the installed
libraries. Made some tests pass again with recent Proj.4/GDAL lib
versions.
2012-09-13 16:20:11 +02:00
Claude Paroz
fbd4b3a518
[py3] Fixed GeoDjango mutable list tests
2012-09-12 16:13:58 +02:00
Claude Paroz
c2c8d4044e
Made minimal changes to make gis test suite start with Python 3
2012-09-12 15:03:46 +02:00
Claude Paroz
1aa218b857
Fixed test output check when password is blank
2012-09-12 11:58:02 +02:00
Claude Paroz
703c266682
Fixed #18182 -- Made is_usable_password check if hashing algorithm is correct
...
The display of the ReadOnlyPasswordHashWidget has also been improved to
distinguish empty/unusable password from erroneous password.
Fixed #18453 also.
Thanks danielr and Leo for the reports and Moritz Sichert for the
initial patch.
2012-09-12 11:32:50 +02:00
Claude Paroz
859aa2a6c4
Fixed #18790 -- Encoded database password on Python 2
...
Thanks thcourbon@gmail.com for the report.
2012-09-12 10:16:49 +02:00
Claude Paroz
f1bdfbd24b
Document and test 'type' usage in Widget attrs
...
Refs #16630 .
2012-09-10 19:31:11 +02:00
Collin Anderson
f416ea9c8d
fixed rfc comment typo in middleware/csrf.py
2012-09-10 12:11:24 -03:00
Mike Grouchy
cb1614f7b3
Fixed #18611 -- Display current date/time when running runserver
2012-09-10 13:35:21 +02:00
Carl Meyer
fcec904e4f
Fix an HTML-parser test that's failed in Python 2.6.8 since 5c79dd58
.
...
The problem description in #18239 asserted that
http://bugs.python.org/issue670664 was fixed in Python 2.6.8, but based on
http://bugs.python.org/issue670664#msg146770 it appears that's not correct; the
fix was only applied in 2.7, 3.2, and Python trunk. Therefore we must use our
patched HTMLParser subclass in all Python 2.6 versions.
2012-09-09 12:13:42 -06:00
Carl Meyer
75ef980e20
Fix Python 3 test failure introduced in a78dd109
.
2012-09-09 11:37:21 -06:00
Florian Apolloner
9ca17f883d
Replace nested try/finally try/except with try/except/finally.
2012-09-09 13:00:10 +02:00
Martey Dodoo
3fb2662edc
Fixes #18933 . Fixes code example in docstring.
...
Makes code example of silent keyword docstring in cycle templatetag
method the same as in the documentation.
2012-09-09 00:35:40 -04:00
Malcolm Tredinnick
5e99a3d41b
Adjust d7853c5
to not show ignorable warnings when running tests.
2012-09-08 20:28:31 -04:00
Malcolm Tredinnick
c4aa26a983
Internal refactoring; moving LOOKUP_SEP up one level.
...
In an ideal world, nothing except django.db.models.query should have to
import stuff from django.models.sql.*. A few things were needing to get
hold of sql.constants.LOOKUP_SEP, so this commit moves it up to
django.db.models.constants.LOOKUP_SEP.
There are still a couple of places (admin) poking into sql.* to get
QUERY_TERMS, which is unfortunate, but a slightly different issue and
harder to adjust.
2012-09-08 19:51:36 -04:00
Carl Meyer
a78dd109e6
Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.
...
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for
review.
2012-09-08 16:58:35 -06:00
Carl Meyer
67dceeef44
Remove a couple unused imports.
2012-09-08 14:30:11 -06:00
Carl Meyer
307706d082
Fixed #18545 -- Make the 'no DJANGO_SETTINGS_MODULE' error message more useful.Thanks Nick Coghlan for the report, and Malcolm Tredinnick for review.
2012-09-08 14:26:33 -06:00
Claude Paroz
d7853c55ed
Removed warning check in test_load_overlong_key
...
Some backends issue a warning here, others not. This is not the primary
goal of the test, so the assertion about the warning has been removed.
Thanks Carl Meyer for noticing the issue and suggesting the fix.
2012-09-08 21:31:46 +02:00
Travis Swicegood
4754f122dd
Moved the admin inline JS to new JS files for cleanliness.
2012-09-08 15:09:37 -04:00
Aymeric Augustin
7207327dd3
Updated docs for dates generic views.
...
Fixes #18245 . Refs #3542 .
2012-09-08 12:22:39 -04:00
Preston Holmes
3da43c1111
Fixed #18054 -- Deprecated contrib.markup. Thanks to simukis for the initial patch.
2012-09-08 12:13:46 -04:00
Travis Swicegood
ccd1bb0d81
Remove Admin's swallowing of AttributeError ( #16655 , #18593 , #18747 )
...
During the new-admin changes, catching of AttributeError was added to
the admin. This patch removes that as it's no longer possible to add a
value to a ModelAdmin that is not available. Adding an attribute that
can not be called causes an ImproperlyConfigured exception to be raised.
2012-09-08 11:20:05 -04:00
Claude Paroz
09a99714c0
Moved get_primary_key_column implementation to base
...
Refs #17574 .
2012-09-08 10:24:13 +02:00