Aymeric Augustin
4d738fcc3b
Fixed #21546 -- Strengthened kqueue detection.
...
Thanks Loic Bistuer.
2013-12-04 10:11:42 +01:00
Ramiro Morales
12615dab78
Fixed #13476 -- Added support for color in console output under Windows.
...
Detect and use the services of the ANSICON third-party tool if it's
available.
2013-12-02 23:18:04 -03:00
Alasdair Nicol
c75dd664cf
Fixed #21538 -- Added numpy to test/requirements/base.txt
...
Thanks Tim Graham for the report
2013-12-02 13:37:59 -05:00
Aymeric Augustin
643180b5d2
Merge pull request #2016 from loic/ticket21545
...
Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.
2013-12-02 09:45:14 -08:00
Loic Bistuer
9ccde8cfaf
Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.
2013-12-03 00:12:04 +07:00
Krzysztof Jurewicz
b8be3055f1
Fixed #21543 -- Removed base_dir attribute in StaticFilesHandler.
...
This code seems to be an artifact of AdminMediaHandler removed in [5c53e30607
].
2013-12-01 18:03:59 -05:00
Tim Graham
3b60ffa334
Fixed incorrect type for max_length.
2013-12-01 14:21:57 -05:00
Tim Graham
fddb0131d3
Fixed #21535 -- Fixed password hash iteration upgrade.
...
Thanks jared_mess for the report.
2013-11-30 14:18:37 -05:00
Unai Zalakain
2688462f91
Refs #21230 -- removed direct settings manipulation from template tests
2013-11-30 13:47:16 -05:00
Claude Paroz
2080bce695
Fixed #21358 -- Allowed runserver on non-English locales
...
Thanks svartalf for the report.
2013-11-30 19:17:36 +01:00
Tim Graham
f3e7ab366c
Removed gender-based pronouns per [ c0a2daad78
].
2013-11-30 08:37:15 -05:00
Alex Gaynor
c0a2daad78
Documented the house style for gender neutral pronouns.
2013-11-30 08:31:58 -05:00
Alex Hill
ec73ce5d8a
Fixed comment typos.
2013-11-30 07:59:32 -05:00
Claude Paroz
6310d658b7
Closed file after reading pot file
...
Faulty line was introduced in 50a8ab7cd1
.
2013-11-30 11:31:17 +01:00
Claude Paroz
50a8ab7cd1
Enabled makemessages to support several translation directories
...
Thanks Rémy Hubscher, Ramiro Morales, Unai Zalakain and
Tim Graham for the reviews.
Also fixes #16084 .
2013-11-30 11:00:23 +01:00
Alex Gaynor
9af7e18f35
Fixed an unescisarily gendered pronoun in a docstring
2013-11-29 16:57:36 -06:00
Loic Bistuer
b72b85af15
Removed Form._errors from the docs in favor of the add_error API.
2013-11-30 01:00:53 +07:00
Loic Bistuer
f563c339ca
Fixed #20867 -- Added the Form.add_error() method.
...
Refs #20199 #16986 .
Thanks @akaariai, @bmispelon, @mjtamlyn, @timgraham for the reviews.
2013-11-30 01:00:53 +07:00
Vajrasky Kok
7e2d61a972
Fixed #21380 -- Added a way to set different permission for static directories.
...
Previously when collecting static files, the directories would receive permissions
from the global umask. Now the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS
and there's an option to specify the permissions by subclassing any of the
static files storage classes and setting the directory_permissions_mode parameter.
2013-11-29 08:01:30 -05:00
Simon Charette
42ac138009
Fixed a deprecation warning introduced by 96dd48c83f
.
2013-11-28 21:42:24 -05:00
Anssi Kääriäinen
936dbaf128
Merge pull request #2005 from loic/ticket21169
...
Use 'update_fields' in RelatedManager.clear() when bulk=False.
2013-11-28 12:04:21 -08:00
Loic Bistuer
91fce675a4
Use 'update_fields' in RelatedManager.clear() when bulk=False.
...
Thanks Simon Charette for the suggestion.
Refs #21169 .
2013-11-29 03:01:08 +07:00
Claude Paroz
34b8a38558
Fixed #21496 -- Fixed crash when GeometryField uses TextInput
...
Thanks Rhett Garber for the report and initial patch.
2013-11-28 18:29:02 +01:00
Alex Gaynor
c8b637d88e
All the E125 errors hvae been eradicated.
2013-11-28 10:41:20 -06:00
Christopher Medrela
7477a4ffde
Fixed E125 pep8 warnings
2013-11-28 08:50:11 -05:00
Vajrasky Kok
d1df395f3a
Fixed #21517 -- Added unit test for non-autoincrement primary key with value 0.
2013-11-28 08:48:38 -05:00
Baptiste Mispelon
077af42139
Fixed #21515 -- Corrected example of template.Context in documentation.
...
Thanks to trac user oubiga for the report.
2013-11-28 00:57:13 +01:00
Alex Gaynor
a5b94d9d4e
A handle of flake8 fixes
2013-11-27 16:42:39 -06:00
Tim Graham
df6760f12c
Added a warning regarding risks in serving user uploaded media.
...
Thanks Preston Holmes for the draft text.
2013-11-27 16:35:25 -05:00
Anssi Kääriäinen
041a076dad
Merge pull request #2000 from loic/docs
...
Fixed typo in release notes.
2013-11-27 10:51:59 -08:00
Loic Bistuer
ecd8556589
Fixed typo in release notes.
2013-11-28 01:37:21 +07:00
Anssi Kääriäinen
01e8ac47b3
PEP-8 cleanup
...
Refs #21169
2013-11-27 19:45:47 +02:00
Loic Bistuer
f450bc9f44
Added a bulk option to RelatedManager remove() and clear() methods
...
Refs #21169
2013-11-27 19:45:22 +02:00
Anssi Kääriäinen
52015b963d
Used simpler queries for m2m clearing when possible.
...
Refs #21169
2013-11-27 19:45:05 +02:00
Loic Bistuer
17c3997f68
Fixed #21169 -- Reworked RelatedManager methods use default filtering
...
The `remove()` and `clear()` methods of the related managers created by
`ForeignKey`, `GenericForeignKey`, and `ManyToManyField` suffered from a
number of issues. Some operations ran multiple data modifying queries without
wrapping them in a transaction, and some operations didn't respect default
filtering when it was present (i.e. when the default manager on the related
model implemented a custom `get_queryset()`).
Fixing the issues introduced some backward incompatible changes:
- The implementation of `remove()` for `ForeignKey` related managers changed
from a series of `Model.save()` calls to a single `QuerySet.update()` call.
The change means that `pre_save` and `post_save` signals aren't called anymore.
- The `remove()` and `clear()` methods for `GenericForeignKey` related
managers now perform bulk delete so `Model.delete()` isn't called anymore.
- The `remove()` and `clear()` methods for `ManyToManyField` related
managers perform nested queries when filtering is involved, which may
or may not be an issue depending on the database and the data itself.
Refs. #3871 , #21174 .
Thanks Anssi Kääriäinen and Tim Graham for the reviews.
2013-11-27 19:44:18 +02:00
Andrew Godwin
0b3c8fc851
Update tutorial part 1 to discuss migrations properly
2013-11-27 16:29:49 +00:00
Andrew Godwin
67b51b9895
Include deferred SQL in sqlmigrate output
2013-11-27 16:29:37 +00:00
Andrew Godwin
5e63977c0e
Fixed #21438 : makemigrations now detects ManyToManyFields
2013-11-27 15:28:33 +00:00
Andrew Godwin
19b34fbe63
Field.deconstruct() howto docs
2013-11-27 15:20:53 +00:00
Andrew Godwin
eece3c224e
PostGIS schema editor support
2013-11-27 13:32:12 +00:00
Andrew Godwin
4fcfc31865
Add gis deconstruct() method (this does not make schema work)
2013-11-27 12:56:33 +00:00
Andrew Godwin
96dd48c83f
Change initial migration writing to work as docs suggest.
...
Application template now includes an empty migrations module, and
the autodetector will only make initial migrations for apps with
empty modules.
2013-11-27 12:34:31 +00:00
Andrew Godwin
db4527e3c0
Fix squashed migration loading ordering issue
2013-11-27 12:29:22 +00:00
Andrew Godwin
0c46ca83e8
Merge pull request #1985 from raphaa/21499
...
Fixed #21499 -- Migrations won't work if field signature changes
2013-11-26 12:33:52 -08:00
Alex Gaynor
ac17525039
Replace use of dict.has_key with key in dict
2013-11-26 14:32:14 -06:00
Alex Gaynor
bb5ab908cc
Fixed a typo in the documentation
2013-11-26 13:49:54 -06:00
Claude Paroz
384816fccb
Fixed #21448 -- Fixed test client logout with cookie-based sessions
...
Thanks Gunnar Scherf for the report and the suggested patch.
2013-11-26 20:41:51 +01:00
Richard Xia
5725236c3e
Fixed #21355 -- try importing _imaging from PIL namespace first.
2013-11-26 18:51:39 +02:00
Baptiste Mispelon
9d6c48aeb0
Use str.isupper() to test if a string is uppercased.
2013-11-26 14:08:05 +01:00
Vajrasky Kok
16d73d7416
Fixed #21512 -- Added more complete information about Pillow and PIL in model_fields and model_forms tests.
2013-11-26 10:18:54 +01:00