Tommy Beadle
d3fdaf907d
Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback.
...
When using a TransactionTestCase with serialized_rollback=True,
after creating the database and running its migrations (along with
emitting the post_migrate signal), the contents of the database
are serialized to _test_serialized_contents.
After the first test case, _fixture_teardown() would flush the
tables but then the post_migrate signal would be emitted and new
rows (with new PKs) would be created in the django_content_type
table. Then in any subsequent test cases in a suite,
_fixture_setup() attempts to deserialize the content of
_test_serialized_contents, but these rows are identical to the
rows already in the database except for their PKs. This causes an
IntegrityError due to the unique constraint in the
django_content_type table.
This change made it so that in the above scenario the post_migrate
signal is not emitted after flushing the tables, since it will be
repopulated during fixture_setup().
2015-08-24 08:59:20 -04:00
Aymeric Augustin
491d01b7e9
Tweak some examples.
...
"Area man/woman" is confusing to people not familiar with the
conventions of American journalism (like me).
2015-08-22 20:25:42 +02:00
Aymeric Augustin
0eb846605e
Recommend relative imports within Django components.
...
django-developers thread:
https://groups.google.com/d/msg/django-developers/11XvmVdx58w/sFrF0pL8LTgJ
2015-08-22 19:58:44 +02:00
Tim Graham
26dcf739ea
Forwardported release note for refs #25040 .
2015-08-22 08:50:49 -04:00
Tim Graham
d3bc86ec11
Fixed #25284 -- Documented removal of implicit QuerySet __in lookups.
2015-08-21 11:04:22 -04:00
Tim Graham
6c6eb8a691
Refs #24914 -- Added docs for more auth mixin methods.
2015-08-20 17:57:47 -04:00
Tim Graham
333cbdcd2d
Fixed #24951 -- Fixed AssertionError in delete queries involving a foreign/primary key.
...
Thanks Anssi Kääriäinen for help.
2015-08-20 08:14:16 -04:00
Tim Graham
bda408f60b
Fixed #25153 -- Moved 'polls' first in tutorial's INSTALLED_APPS.
2015-08-19 18:59:42 -04:00
Marc
f9de197268
Recommended the JavaScript Cookie library instead of jQuery cookie.
...
jQuery cookie is no longer maintained in favor of the JavaScript
cookie library. This also removes the jQuery dependency.
2015-08-19 10:04:01 -04:00
Tim Graham
47201371d2
Refs #24451 -- Corrected Django version for {% cycle %} deprecation.
2015-08-19 08:37:27 -04:00
Markus Holtermann
f33607ce0b
Fixed style issues in testing docs
2015-08-19 12:18:10 +10:00
Tim Graham
84335e3d1f
Added stub release notes for 1.8.5.
2015-08-18 19:52:45 -04:00
Anton Strogonoff
20787b5c29
Used consistent capitalization and hyphenation of "class-based views" in docs.
2015-08-18 19:07:10 -04:00
Tim Graham
068a80d717
Added today's issue to the security archive.
2015-08-18 13:46:47 -04:00
Tim Graham
8cc41ce7a7
Fixed DoS possiblity in contrib.auth.views.logout()
...
Thanks Florian Apolloner and Carl Meyer for review.
This is a security fix.
2015-08-18 08:03:43 -04:00
Tim Graham
b0ab74dfca
Added stub release notes for security releases.
2015-08-18 08:03:39 -04:00
Anton Strogonoff
d35f184b20
Limited line length in docs/ref/contrib/messages.txt example.
2015-08-17 07:44:04 -04:00
Caio Ariede
dad8434d6f
Fixed #25180 -- Prevented varchar_patterns_ops and text_patterns_ops indexes for ArrayField.
2015-08-15 10:02:08 -04:00
Valentina Mukhamedzhanova
1f7b25c1a7
Fixed #24986 -- Added support for annotations in DISTINCT queries.
2015-08-15 08:23:32 -04:00
Tim Graham
5b5a27942b
Fixed #25268 -- Tweaked wording in docs/ref/forms/api.txt
2015-08-14 08:27:38 -04:00
Adam Brenecki
52a190b657
Fixed #24988 -- Documented passing a dictionary of ValidationErrors to ValidationError
2015-08-13 14:17:02 -04:00
Sambhav Satija
d0bd533043
Fixed #25254 -- Added JsonResponse json_dumps_params parameter.
2015-08-12 10:39:07 -04:00
Tim Graham
290145e661
Corrected indentation of JsonResponse docs.
2015-08-12 10:27:57 -04:00
Doug Beck
b7508896fb
Fixed #24257 -- Corrected i18n handling of percent signs.
...
Refactored tests to use a sample project.
Updated extraction:
* Removed special handling of single percent signs.
* When extracting messages from template text, doubled all percent signs
so they are not interpreted by gettext as string format flags. All
strings extracted by gettext, if containing a percent sign, will now
be labeled "#, python-format".
Updated translation:
* Used "%%" for "%" in template text before calling gettext.
* Updated {% trans %} rendering to restore "%" from "%%".
2015-08-12 10:23:34 -04:00
Tim Graham
d772d812cf
Updated memcached library links to point to PyPI.
2015-08-11 21:20:32 -04:00
Brendan Hayward
c9fb4f3c45
Fixed #25205 -- Removed doc references to deprecated GeoManager class.
2015-08-11 10:14:44 -04:00
Tim Graham
56ed80ac2a
Fixed typo in docs/ref/contrib/gis/geoquerysets.txt
2015-08-11 09:33:06 -04:00
Claude Paroz
f2e4c7aca4
Removed unnecessary comma in docs
2015-08-10 16:02:14 +02:00
Tim Graham
5980b05c1f
Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()
...
This mostly reverts 5643a3b51b
and
81e1a35c36
.
Thanks Carl Meyer for review.
2015-08-10 08:51:32 -04:00
Tim Graham
787cc7aa84
Refs #25236 -- Discouraged use of ifequal/ifnotequal template tags.
2015-08-08 08:23:33 -04:00
Tim Graham
7080cef7bf
Corrected some inconsistent headings in docs/ref/templates/builtins.txt.
2015-08-08 08:23:32 -04:00
Claude Paroz
e9c5c39631
Updated various links in docs
2015-08-08 13:57:15 +02:00
Claude Paroz
64982cc2fb
Updated Wikipedia links to use https
2015-08-08 12:02:32 +02:00
Claude Paroz
18f3d4c1bd
Updated Transifex links in docs
2015-08-08 11:33:28 +02:00
mlavin
69db1c7455
Fixed #25231 -- Added recording of squashed migrations in the migrate command.
...
Ensured squashed migrations are recorded as applied when the
migrate command is run and all of the original migrations
have been previously applied.
2015-08-07 17:59:18 -04:00
Tim Graham
a7b7f27c05
Fixed #25233 -- Fixed HStoreField.has_changed() handling of initial values.
...
Thanks Simon Charette for review.
2015-08-07 13:26:17 -04:00
Caio Ariede
ec9004728e
Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.
2015-08-07 09:33:17 -04:00
Tim Graham
16a8d01308
Fixed #25229 -- Clarified how an iterable works with @permission_required
2015-08-05 17:13:45 -04:00
Sergey Kolosov
244404227e
Fixed #22404 -- Added a view that exposes i18n catalog as a JSON
...
Added django.views.i18n.json_catalog() view, which returns a JSON
response containing translations, formats, and a plural expression
for the specified language.
2015-08-05 09:05:21 -04:00
Tim Graham
e8cd65f829
Fixed #25213 -- Discouraged use of QuerySet.extra()
...
Thanks Anssi Kääriäinen for the draft text and Simon Charette
for review.
2015-08-05 08:01:11 -04:00
Tim Graham
97fa7fe961
Fixed #25212 -- Documented the RawSQL expression.
2015-08-05 07:54:54 -04:00
Tim Graham
28cb272a72
Fixed #25224 -- Fixed typo in docs/ref/contrib/flatpages.txt
2015-08-04 14:45:15 -04:00
Alasdair Nicol
6d7a9d96fe
Fixed password_reset signature in docs
2015-08-04 13:54:32 -04:00
Caio Ariede
3862c568ac
Fixed #25136 -- Documented Count('X', distinct=True) in aggregate topic guide.
2015-08-04 10:46:04 -04:00
Matt Robenolt
4dcfbd7923
Fixed #25211 -- Added HttpRequest.get_port() and USE_X_FORWARDED_PORT setting.
2015-08-04 09:50:57 -04:00
Curtis Maloney
9f73009e98
Fixed #25215 -- Solved reference to forms.HStoreField in declaration of HStoreField
...
Correct test which was using the model field in a test form.
2015-08-04 19:15:22 +10:00
Tim Graham
a6acfc3183
Refs #17914 -- Discouraged using reverese() with callables.
2015-08-03 08:34:19 -04:00
Caio Ariede
98eb91171d
Fixed #25207 -- Misspelled word in documentation: dialogue
2015-08-01 19:17:35 -04:00
Matt Robenolt
514fee82a1
Removed obsolete note about sentry/raven not handling WSGI properly.
...
2.0.7 was released in 2012.
2015-08-01 19:10:41 -04:00
Rigel Di Scala
3bdaaf6777
Fixed #25146 -- Allowed method_decorator() to decorate classes.
2015-08-01 08:38:03 -04:00