Anssi Kääriäinen
e01b5a5823
Fixed #11521 -- usage of field.attname in .update()
...
Fixed already by previous patch, only test added.
2013-07-31 16:02:36 +03:00
Anssi Kääriäinen
c21e86ab9e
Added field.attname to Options.name_map
...
The change also removed allow_explicit_fk from sql/query.py.
2013-07-31 16:02:36 +03:00
Tai Lee
31e6d58d46
Fixed #20348 -- Consistently handle Promise objects in model fields.
...
All Promise objects were passed to force_text() deep in ORM query code.
Not only does this make it difficult or impossible for developers to
prevent or alter this behaviour, but it is also wrong for non-text
fields.
This commit changes `Field.get_prep_value()` from a no-op to one that
resolved Promise objects. All subclasses now call super() method first
to ensure that they have a real value to work with.
2013-07-31 15:54:17 +03:00
Julian Bez
8f5533ab25
Fixed #20793 -- Added Last-Modified header to sitemaps.
2013-07-31 07:42:30 -04:00
Tim Graham
4d8ecbdfda
Fixed some ReST errors; refs #20819 .
2013-07-31 07:22:38 -04:00
SusanTan
7de35a9ef3
Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498 .
...
Thanks CollinAnderson for the report.
2013-07-31 07:09:12 -04:00
SusanTan
ccf8f1e18f
Added a test for AdminSite.app_index_template; refs #8498 .
2013-07-31 06:59:15 -04:00
Jannis Leidel
0674b38ce9
Merge pull request #1416 from thirstydigital/tickets/20819-staticfiles-serve-404
...
Fixed #20819 -- Return 404 instead of 500 error when ``staticfiles`` vie...
2013-07-31 02:02:27 -07:00
Tai Lee
4c6ffcf721
Fixed #20819 -- Return 404 instead of 500 error when ``staticfiles`` view is used in production.
2013-07-31 18:58:50 +10:00
Gavin Wahl
5154c9f92c
Fixed #20806 -- Cached loader caches find_template
...
The cached template loader should cache find_template in addition to
load_template.
2013-07-30 14:25:30 -04:00
Baptiste Mispelon
3c45fb8589
Fixed #10491 -- Allowed passing lazy objects to HttpResponseRedirect.
...
Thanks liangent for the report.
2013-07-30 13:39:44 -04:00
MinRK
75cf5fc7f0
Added support for IPython.start_ipython in shell
...
IPython 1.0 introduces an actual stable public API function
for starting a normal (non-embedded) IPython session.
This is an official public API, which is promised to survive implementation changes.
2013-07-30 10:22:41 -07:00
Kirill Zaitsev
dafec05548
Updated flatpages tests to override CSRF_FAILURE_VIEW.
2013-07-30 13:04:30 -04:00
Tim Graham
8550df869b
Removed part of a test that doesn't work on Jenkins; refs #19877 .
2013-07-30 11:59:04 -04:00
Tim Graham
dffda2ba4e
Fixed a test that depended on the DB backend; refs #19877 . Thanks Loic.
2013-07-30 11:30:20 -04:00
Aymeric Augustin
5b47a9c5a0
Fixed a test that could fail depending on PASSWORD_HASHERS.
...
Thanks Claude. Refs #20760 .
2013-07-30 16:14:53 +02:00
Jose L. Patino
7b57e575c9
Fixed #19877 -- Added `--no-color` option to `BaseCommand` to avoid using output styles.
2013-07-30 09:26:18 -04:00
Tim Graham
d4dd55e78c
Doc tweaks for html_message parameter to send_mail(); refs #20817
2013-07-30 08:06:49 -04:00
Andrew Godwin
fddc5957c5
Implement allow_migrate for migration operations
2013-07-30 12:34:31 +01:00
Andrew Godwin
12e9804d16
Rename allow_syncdb to allow_migrate
2013-07-30 12:08:59 +01:00
Andrew Godwin
68e0a169c4
Rename pre_ and post_syncdb to *_migrate, with aliases from old names
2013-07-30 11:52:52 +01:00
Andrew Godwin
086389f5fc
Start adding schema migration into the release notes
2013-07-30 11:52:36 +01:00
Julien Phalip
53e9ab72e9
Updated some minified admin javascript files.
2013-07-30 00:21:33 -07:00
Julien Phalip
e351dbf6ee
Fixed #19082 -- Enabled admin field pre-population for existing objects.
...
Thanks to msaelices and d1ffuz0r for the initial patch and tests.
2013-07-30 00:21:08 -07:00
Shai Berger
6ed579e7eb
Fixed #20785 -- Corrected exception caught for Oracle LIKE operator detection
...
The code that tests to see which LIKE expressions to use now runs
using non-error-wrapped cursor, so cx_Oracle exceptions need to be caught
rather than Django DatabaseErrors.
Thanks Trac user ludo for report and initial patch.
2013-07-30 03:21:06 +03:00
Tim Graham
05ea5a2139
Fixed #20823 -- Typo in docs/ref/forms/validation.txt
2013-07-29 18:41:08 -04:00
Claude Paroz
5c1143910e
Removed most of absolute_import imports
...
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
2013-07-29 20:28:13 +02:00
Tim Graham
402b4a7a20
Fixed #14850 -- Cleaned up duplicate code in admin formset handling.
...
Thanks apollo13 for the report and review.
2013-07-29 12:37:43 -04:00
Claude Paroz
e4937b6dde
Add utf-8 preamble to admin_scripts temp settings file
...
As some settings are copied from current user settings, we cannot
be sure the characters are pure ascii.
2013-07-29 17:10:23 +02:00
Claude Paroz
fdd7a355bf
Deprecated django.utils.importlib
...
This was a shim for pre-Python 2.7 support.
2013-07-29 17:10:22 +02:00
Justin Michalicek
ac09558760
Fixed #20817 -- Added html_message parameter to django.core.mail.send_mail()
2013-07-29 09:53:47 -04:00
Przemek Lewandowski
382c53d7d8
Fixed #18213 -- Allowed empty fixtures (emit a warning rather than raising an exception).
2013-07-29 08:03:51 -04:00
minusf
70c080fcdb
Misc doc cleanups.
2013-07-29 06:57:33 -04:00
minusf
c694e6220e
Allowed overriding variables in docs/Makefile.
2013-07-29 06:51:54 -04:00
Jannis Leidel
33e6cf5ec3
Fixed #20774 -- Mention the new django-localflavor app as a replacement for the contrib app.
2013-07-29 10:54:53 +02:00
Tim Graham
0b35a2cce3
Fixed ReST typo in topics/class-based-views/mixins.txt
2013-07-28 14:09:29 -04:00
Florian Apolloner
b70c371fc1
Simplified smart_urlquote and added some basic tests.
2013-07-28 10:05:39 +02:00
Julien Phalip
0d0ccf81a0
Moved a release note that I had accidentally misplaced in bb145e2c47
.
2013-07-27 19:52:59 -07:00
Julien Phalip
4e0ff35146
Fixed #11195 -- Added CSS classes to the changelist cells to allow style customizations. Thanks to akaihola, Ramiro Morales and vdboor for their work on the patch.
2013-07-27 19:50:02 -07:00
Julien Phalip
47c755327b
Fixed a number of minor misspellings.
2013-07-27 18:46:03 -07:00
Florian Hahn
ca39c0a6be
Fixed #18404 -- Added test for AppStaticStorage with non ascii path
...
(bug was already fixed in #19357 )
2013-07-27 20:18:32 -04:00
Serge G. Spaolonzi
e07e4030b9
Fixed #18511 -- Cleaned up admin password reset template titles.
2013-07-27 14:23:04 -04:00
Tim Graham
8676318d2d
Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.
...
Thanks CollinAnderson for the report.
2013-07-26 14:45:38 -04:00
Andrew Godwin
c8cbdabfab
Fix Python 3 support
2013-07-26 17:08:12 +01:00
Andrew Godwin
d5ca169334
Fix "OK" alignment in migrate output
2013-07-26 16:52:17 +01:00
Andrew Godwin
52643a69e3
Add --fake option to migrate
2013-07-26 16:47:00 +01:00
Andrew Godwin
3f7113f1d9
Fix timezone warnings if USE_TZ=True
2013-07-26 16:46:48 +01:00
Andrew Godwin
9c6d57ef5a
Prettier imports
2013-07-26 16:40:27 +01:00
Andrew Godwin
c1ed21fa9e
Use new transaction API in syncdb section of migrate
2013-07-26 16:39:44 +01:00
Andrew Godwin
6b39010d57
Remove nasty error message checking hack
2013-07-26 16:33:32 +01:00