anatoly techtonik
59d2b8aa16
Fix issue #18267 - document `settings.configured` property.
2012-05-16 16:13:39 +03:00
Jannis Leidel
5f75ac91df
Fixed #17896 -- Added file_hash method to CachedStaticFilesStorage to be able to customize the way the hashed name of a file is created. Thanks to mkai for the initial patch.
2012-05-16 13:21:50 +02:00
Aymeric Augustin
085c03e08b
Updated installation instructions.
...
Django 1.5 requires Python 2.6 or 2.7, and setup.py install over a
previous installation doesn't work.
2012-05-15 10:08:34 +02:00
Claude Paroz
bb4452f212
Fixed #18019 -- Use threaded runserver only when database supports it.
2012-05-15 09:21:10 +02:00
Aymeric Augustin
fcb09b5746
Fixed #10890 : added prev/next_week in the context
...
of per-week date-based generic views. Thanks ee_lars for the report.
2012-05-14 22:40:45 +02:00
Claude Paroz
bbb12581db
Replaced im_func and im_self by __func__ and __self__.
...
The new names are Python 3 compatible.
2012-05-12 22:35:21 +02:00
Claude Paroz
33ffd28d76
Added missing relative imports in test files.
2012-05-12 19:58:32 +02:00
Anssi Kääriäinen
de79d23ce0
Avoided test failure on MySQL by skipping a failing test
...
MySQL generates an extra query in inheritance cases when doing an update.
This results in a test failure when checking for number of queries in
update_only_fields tests. Added a skip temporarily to avoid this test
failure. Refs #18304 .
2012-05-12 12:03:46 +03:00
Andrei Antoukh
365853da01
Fixed #4102 -- Allow update of specific fields in model.save()
...
Added the ability to update only part of the model's fields in
model.save() by introducing a new kwarg "update_fields". Thanks
to all the numerous reviewers and commenters in the ticket
2012-05-12 10:29:41 +03:00
Marc Neuwirth
b719cbb901
Removed 'return false' in favor of preventDefault.
...
Moved preventDefault to the top
2012-05-12 00:39:31 -04:00
Adrian Holovaty
25128856f5
Fixed typo in utils/archive.py docstring
2012-05-11 13:51:19 -05:00
Claude Paroz
0611e1fed2
Fixed #18301 -- Fixed url name in password reset example.
...
Thanks nicknnn for the report.
2012-05-11 20:15:30 +02:00
Aymeric Augustin
367379581f
Fixed #18281 -- Misleading wording in the tutorial.
...
Thanks bhp for the report.
2012-05-11 12:43:43 +02:00
Tyler Ball
1c30063faf
Fixed #18298 -- Marked error strings as translatable in CA localflavor.
2012-05-11 08:53:36 +02:00
Aymeric Augustin
3dde02640c
Fixed #17518 -- CSS glitch in StackedInline.
...
Thanks sebastian for the report and patch.
2012-05-10 22:44:40 +02:00
Aymeric Augustin
d171b3cc0b
Fixed #16335 -- Clarified an unintuitive behavior.
...
The DTL will perform dict lookup before method lookup, which yields
an unexpected result for defaultdicts.
2012-05-10 22:34:03 +02:00
Aymeric Augustin
46648b641d
Fixed #17798 -- Tweaked the CA localflavor.
...
Thanks shelldweller.
2012-05-10 22:19:01 +02:00
Aymeric Augustin
73f7d34699
Fixed #17950 -- Warned about usability limits of ModelChoiceField.
...
Thanks poirier for the report.
2012-05-10 22:01:11 +02:00
Aymeric Augustin
b1155adcde
Fixed #18093 -- Added a pk to AnonymousUser.
2012-05-10 21:42:13 +02:00
Aymeric Augustin
c970bcf368
Fixed #18257 -- Typo in contenttypes docs.
2012-05-10 21:32:52 +02:00
Claude Paroz
169b1a404c
Replaced foo.next() by next(foo).
...
This new syntax for next() has been introduced in Python 2.6 and is
compatible with Python 3.
2012-05-10 20:15:49 +02:00
Jannis Leidel
1c1a229632
Set the post process cache when finished instead of one by one.
...
This should prevent a race condition if running collectstatic is
canceled or its cache is accessed from other processes, leaving the
cache in a corrupt state.
2012-05-10 18:31:48 +02:00
Anssi Kääriäinen
c2e1ecb4b1
Fix proxy model Query.remove_inherited_models()
...
Fixed #18248 -- proxy models were added to included_inherited_models
in sql.query.Query. The variable is meant to be used for multitable
inheritance only. This mistake caused problems in situations where
proxy model's query was reused.
2012-05-09 20:33:31 +03:00
Alex Gaynor
1b05546bd5
Merge pull request #50 from duilio/master
...
Make Comment._get_userinfo properly reentrant.
2012-05-08 08:37:51 -07:00
maurizio
6524ef501d
Comment._get_userinfo is thread safe now
2012-05-08 17:25:31 +02:00
Anssi Kääriäinen
2e729c6c33
Merge pull request #48 from akaariai/pull_38_fix
...
Fixed total_ordering for Python < 2.7.2
2012-05-07 12:32:14 -07:00
Anssi Kääriäinen
9877e84caa
Fixed total_ordering for Python < 2.7.2
...
The total_ordering in Python versions prior to 2.7.2 is buggy, and
this caused infinite recursion for Field comparisons on those
versions. Use the borrowed total_ordering for all Python versions
prior to 2.7.2.
The buggy total_ordering was introduced in commit
5cbfb48b92
2012-05-07 21:03:21 +03:00
Simon Charette
5cbfb48b92
Made model fields comparable to other objects
...
Fixed #17851 -- Added __lt__ and @total_ordering to models.Field,
made sure these work correctly on other objects than Field, too.
2012-05-07 20:08:20 +03:00
Claude Paroz
1aae1cba99
Imported zip from future_builtins instead of itertools.izip.
...
In Python 3, itertools.izip is not available any more (behaviour
integrated in standard zip).
2012-05-07 17:25:12 +02:00
Aymeric Augustin
ecdd0914b1
Updated time zone FAQ with timezone.localize.
2012-05-06 09:50:30 +02:00
Claude Paroz
57102ce781
Used io.BytesIO also for ContentFile.
...
io.StringIO would force the content to be Unicode, which would be
slightly backwards incompatible.
2012-05-05 22:33:08 +02:00
Claude Paroz
d7dfab59ea
Replaced cStringIO.StringIO by io.BytesIO.
...
Also replaced StringIO.StringIO by BytesIO in some other appropriate
places. StringIO is not available in Python 3.
2012-05-05 21:41:44 +02:00
Alex Gaynor
1583d40224
Fixed the syntax used for the Python repl examples in docs and docstrings.
2012-05-05 09:54:30 -05:00
Claude Paroz
208e26b39c
Commented on a line that inadvertantly slipped in commit 865cd35c
...
Ignoring __pycache__ directories fixes #17393 and prepare testing
with Python 3.
2012-05-05 16:45:02 +02:00
Claude Paroz
865cd35c9b
Made more extensive usage of context managers with open.
2012-05-05 14:06:36 +02:00
Claude Paroz
ec5423df05
Fixed #18270 -- Corrected variable name in password reset example.
...
Thanks schnippi for the report.
2012-05-04 08:20:50 +02:00
Claude Paroz
11a5355517
Inserted more simplefilter calls to be sure warnings are emitted.
...
Thanks to Florian Apolloner for suggesting the patch.
2012-05-03 21:31:23 +02:00
Claude Paroz
00c0d3c44e
Made warning assertions work with or without -Wall python switch
2012-05-03 20:18:05 +02:00
Claude Paroz
10cf3c6427
Used catch_warnings instead of save/restore methods. Refs #17049 .
2012-05-03 18:30:07 +02:00
Ramiro Morales
e9a56606e7
Fixed broken URLs introduced in 1adc87cd32
.
2012-05-03 12:42:56 -03:00
Ramiro Morales
ea28bc2688
Removed unused file from i18n regression tests.
2012-05-03 12:00:36 -03:00
Ramiro Morales
c0395dea46
Merge branch 'master' of github.com:django/django
2012-05-03 11:54:51 -03:00
Ramiro Morales
1adc87cd32
Updated some URLs in the documentation to point to the new repository.
2012-05-03 11:53:17 -03:00
Claude Paroz
b52672d778
Replaced deprecated TestCase methods. Refs #17049 .
2012-05-03 16:39:16 +02:00
Aymeric Augustin
e84f79f051
Fixed #18042 -- Advanced deprecation warnings.
...
Thanks Ramiro for the patch.
2012-05-03 15:27:01 +02:00
Alex Ogier
227cec686e
Fixed #18214 -- Clarified the docs about serializable objects.
2012-05-03 08:57:22 +02:00
Karen Tracey
b86a00187d
Merge pull request #28 from akaariai/ticket_18163
...
Ticket 18163 - use faster password hasher in tests.
2012-05-02 16:06:00 -07:00
Aymeric Augustin
435081fd22
Fixed tests for date-based generic views.
2012-05-01 22:23:17 +02:00
Claude Paroz
aaa3382fdc
Fixed #18246 -- Replaced bash-specific syntax in geodjango postgis helper script.
...
Thanks jose for the report.
2012-05-01 20:33:50 +02:00
Aymeric Augustin
80c0cbf1c9
Clarified warning about date-based generic views.
2012-05-01 11:29:55 +02:00