Jon Dufresne
b44dee16e6
Fixed #20916 -- Added Client.force_login() to bypass authentication.
2015-07-01 13:01:08 -04:00
Matthew Somerville
839edcebb3
Fixed #21695 -- Added asvar option to blocktrans.
...
Thanks Bojan Mihelac for the initial patch.
2015-07-01 10:03:00 -04:00
Andreas Pelme
00a1d4d042
Fixed #21803 -- Added support for post-commit callbacks
...
Made it possible to register and run callbacks after a database
transaction is committed with the `transaction.on_commit()` function.
This patch is heavily based on Carl Meyers django-transaction-hooks
<https://django-transaction-hooks.readthedocs.org/ >. Thanks to
Aymeric Augustin, Carl Meyer, and Tim Graham for review and feedback.
2015-06-30 14:51:00 -04:00
Tim Graham
aed437d567
Updated release process for new release schedule.
2015-06-25 11:36:17 -04:00
Tim Graham
aaacaeb096
Renamed RemovedInDjangoXYWarnings for new roadmap.
...
Forwardport of ae1d663b79
from stable/1.8.x plus more.
2015-06-24 16:08:20 -04:00
Wim Feijen
514b69cb9e
Updated indentation of example template in docs/topics/i18n/translation.txt.
2015-06-22 15:42:09 -04:00
Marten Kenbeek
738c0de300
Fixed #14200 -- Added a fallback if HttpRequest.urlconf is None.
...
Made BaseHandler fall back to settings.ROOT_URLCONF if
HttpRequest.urlconf is set to None, rather than raising
ImproperlyConfigured.
2015-06-20 18:52:33 -04:00
Claude Paroz
9368f51e12
Fixed #20197 -- Made XML serializer fail loudly when outputting unserializable chars
...
Thanks Tim Graham for the review.
2015-06-19 20:54:46 +02:00
Markus Holtermann
e5cb4e1411
Fixed #24914 -- Added authentication mixins for CBVs
...
Added the mixins LoginRequiredMixin, PermissionRequiredMixin and
UserPassesTestMixin to contrib.auth as counterparts to the respective
view decorators.
The authentication mixins UserPassesTestMixin, LoginRequiredMixin and
PermissionRequiredMixin have been inspired by django-braces
<https://github.com/brack3t/django-braces/ >
Thanks Raphael Michel for the initial patch, tests and docs on the PR
and Ana Balica, Kenneth Love, Marc Tamlyn, and Tim Graham for the
review.
2015-06-17 23:19:10 +02:00
Tim Graham
ebd183a18c
Fixed outdated Python version support info in docs/topics/install.txt
2015-06-17 11:27:25 -04:00
Tim Graham
58665dded0
Removed usage of string-based url() in auth docs.
2015-06-17 09:45:03 -04:00
Tim Graham
fbc618c13c
Refs #24987 -- Documented that Client.login() rejects inactive users.
2015-06-16 12:46:23 -04:00
Moritz Sichert
296919e7a5
Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from class
2015-06-12 17:44:54 -04:00
Tim Graham
55b3bd8468
Refs #16860 -- Minor edits and fixes to password validation.
2015-06-10 07:41:01 -04:00
Nik Nyby
f67127e0af
Fixed typos in docs/topics/python3.txt
2015-06-09 10:36:46 -04:00
Marten Kenbeek
1e82094f1b
Fixed #21927 -- Made application and instance namespaces more distinct.
...
Made URL application namespaces be set in the included URLconf and
instance namespaces in the call to include(). Deprecated other ways
to set application and instance namespaces.
2015-06-08 15:12:20 -04:00
Raphael Michel
39937de7e6
Fixed #24929 -- Allowed permission_required decorator to take any iterable
2015-06-08 13:44:39 -04:00
Marissa Zhou
8b1f39a727
Fixed #24796 -- Added a hint on placement of SecurityMiddleware in MIDDLEWARE_CLASSES.
...
Also moved it in the project template.
2015-06-08 12:32:38 -04:00
Erik Romijn
1daae25bdc
Fixed #16860 -- Added password validation to django.contrib.auth.
2015-06-07 19:31:20 +02:00
Alasdair Nicol
1ea87c8c79
Fixed #24910 -- Added createsuperuser support for non-unique USERNAME_FIELDs
...
Clarified docs to say that a non-unique USERNAME_FIELD is permissable
as long as the custom auth backend can support it.
2015-06-06 09:33:02 -04:00
Tim Graham
2fbea621e6
Capitalized "Python" in docs.
2015-06-05 08:24:53 -04:00
Russell Keith-Magee
5c35b4a8c9
Added release notes for feature added in fe21fb81
2015-06-05 11:42:58 +01:00
Russell Keith-Magee
fe21fb810a
Merge pull request #4757 from sergei-maertens/ticket_18166
...
Fixed #18166 -- Added ability to pass kwargs to the form constructor in a formset.
2015-06-05 11:10:28 +01:00
Matthew Somerville
40f0a84cb1
Fixed #24159 -- Made compilemessages run across all apps.
...
Updated the command to match the documentation, which states it
runs over all .po files.
2015-06-04 21:02:02 -04:00
Sergei Maertens
238e2ac369
Fixed #18166 -- Added form_kwargs support to formsets.
...
By specifying form_kwargs when instantiating the formset, or overriding
the `get_form_kwargs` method on a formset class, you can pass extra
keyword arguments to the underlying `Form` instances.
Includes tests and documentation update.
2015-06-04 15:13:55 +02:00
Tomáš Ehrlich
002b3d87b5
Fixed #24230 -- Added translated language name for i18n template tag/filter.
2015-06-02 16:04:01 -04:00
Tim Graham
9ca0961b8a
Added headings to i18n template tags and filters.
2015-06-02 15:51:00 -04:00
Maximiliano
bf07ba523a
Simplified wording in QuerySet.update() docs.
2015-06-01 09:42:23 -04:00
Curtis
c005a6620e
Optimise the rest of the PNGs in docs
2015-05-29 15:22:40 +10:00
Kevin Marsh
10945ebeb8
Removed unused import in example code in docs/topics/auth/default.txt
2015-05-27 13:26:20 +01:00
Andy McKay
4525a0c466
Fixed #24773 -- Added a json() method on test client responses.
2015-05-25 10:42:30 -04:00
I am Clinton
0b0bb6100d
Fixed typos in HTTP decorator docs.
2015-05-25 07:38:08 -04:00
Alexander Sosnovskiy
04e8d890ae
Fixed #16891 -- Made Model/QuerySet.delete() return the number of deleted objects.
2015-05-22 13:27:16 -04:00
I am Clinton
9c8a2ab81d
Fixed mistakes in docs/topics/forms/formsets.txt examples.
2015-05-22 11:29:10 -04:00
Chris Schur
70faaccc3e
Fixed settings docs to match list/tuple changes in #24149 .
2015-05-22 09:40:55 -04:00
Tim Graham
00d763a4fb
Fixed typo in docs/topics/auth/default.txt
2015-05-22 06:48:59 -04:00
Laurent Peuch
21efb5eb74
Enhanced registration/login.html example template.
2015-05-21 20:45:51 -04:00
Preston Timmons
655f524915
Fixed #17085 , #24783 -- Refactored template library registration.
...
* Converted the ``libraries`` and ``builtins`` globals of
``django.template.base`` into properties of the Engine class.
* Added a public API for explicit registration of libraries and builtins.
2015-05-21 09:12:06 -05:00
Simon Charette
c15b0c2792
Fixed #24652 -- Disallowed query execution in SimpleTestCase subclasses.
...
Thanks to Tim and Anssi for the review.
2015-05-20 12:50:41 -04:00
Tim Graham
a0175724b0
Added docs for assertRaisesMessage as context manager.
2015-05-18 10:04:18 -04:00
Tim Graham
fc1eea59c0
Fixed typo in docs/topics/http/sessions.txt
2015-05-17 18:35:14 -04:00
Aymeric Augustin
ed83881e64
Fixed #23820 -- Supported per-database time zone.
...
The primary use case is to interact with a third-party database (not
primarily managed by Django) that doesn't support time zones and where
datetimes are stored in local time when USE_TZ is True.
Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ
is False used to result in silent data corruption. Now this is an error.
2015-05-17 09:40:28 +02:00
I am Clinton
dce004ab72
Minor edits to docs/topics/http/urls.txt
2015-05-14 19:31:30 -04:00
Charles Dee Rice
4f3c444241
Fixed #24789 -- Fixed wrong positional args order in doc example
...
Arguments shown in example code (signal, sender, instance) appeared to
be the incorrect positional arguments for a post_save signal (which
might start as: sender, instance, created), as documented:
https://docs.djangoproject.com/en/1.8/ref/signals/#post-save
2015-05-13 10:14:33 +02:00
I am Clinton
ec74dba2ab
Light edits to docs/topics/forms/index.txt
2015-05-12 09:16:13 -04:00
Tim Graham
8e86d9d3df
Fixed #24780 -- Removed outdated discussion of signals and custom users.
2015-05-11 09:10:30 -04:00
Ian Foote
c21b832c12
Fixed typo in docs/topics/testing/tools.txt
2015-05-09 18:03:25 -04:00
David Krisch
1a62f19707
Fixed #24763 -- Moved DoesNotExist exception to model docs.
2015-05-08 13:05:50 -04:00
Preston Timmons
adff499e47
Fixed #24119 , #24120 -- Formalized debug integration for template backends.
2015-05-06 17:33:47 -05:00
Dan Watson
fe914341c8
Fixed #24564 -- Moved AbstractBaseUser and BaseUserManager so they can be used without auth in INSTALLED_APPS
2015-05-05 12:03:48 -04:00
José Padilla
b0bd1f0e19
Fixed typo in translation import statement
2015-05-02 20:18:34 +02:00
Dave Hodder
08c980d752
Updated capitalization in the word "JavaScript" for consistency
2015-05-01 13:26:42 -04:00
Dmitry Medvinsky
cf34ee68f0
Added translation.override() context manager to docs.
2015-04-29 21:22:52 -04:00
Baptiste Mispelon
683ece0ec8
Used full variable names instead of abbreviation in examples
...
Thanks to Andrew Ingram for the report.
2015-04-29 17:21:57 +02:00
Mounir
25b52d04f6
Fixed typo in docs/topics/i18n/translation.txt
2015-04-28 12:52:36 -04:00
Markus Bertheau
4a438e400b
Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.
2015-04-28 12:07:02 -04:00
Adam Zapletal
0cf7477ed8
Fixed a typo and formatting consistency in testing tools docs
...
I changed "appears" to "appear" and emphasized the word "not" to match
the rest of the document.
2015-04-25 12:22:53 +02:00
Nik Nyby
9d6914da66
Added missing comma in LocMemCache example.
2015-04-24 20:29:07 -04:00
Marcus Pennington
269a5dbdd3
Fixed #24700 -- Added dash to slug regex in http docs
2015-04-24 17:57:29 +01:00
Tim Graham
8efea1b8d5
Fixed #24526 -- Combined django.request/security loggers with the root logger.
...
Thanks Carl Meyer for review.
2015-04-24 11:07:42 -04:00
Daniel Harding
ad31bc0565
Updated startproject MIDDLEWARE_CLASSES in docs.
2015-04-24 09:32:40 -04:00
Tim Graham
1418f75304
Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
2015-04-22 09:31:10 -04:00
Tim Graham
ffe83d16bd
Fixed #24659 -- Clarified docs of smtp.EmailBackend parameters.
2015-04-20 15:46:31 -04:00
Simon Charette
37e23c6060
Fixed #24674 -- Documented the correct NullBooleanField formfield.
...
Thanks to knbk for the report.
2015-04-20 15:18:41 -04:00
Anton
f5fbddf22f
Fixed typo in docs/topics/class-based-views/intro.txt
2015-04-20 14:11:21 -04:00
Marco Santamaria
bae72bdd2a
Fixed #11078 -- documentation update.
2015-04-19 16:24:14 +02:00
Tim Graham
d974c89ebb
Fixed #24646 -- Fixed jinja2 example on Python 2.
2015-04-16 19:32:42 -04:00
Daniel Lindsley
8ca9bc5ec3
Fixed #23984 -- Added Javascript i18n documentation
...
This fleshes out the documentation around all of the exported
Javascript functions available from the ``javascript_catalog``
view.
2015-04-16 08:15:35 -04:00
Tim Graham
6b8c969878
Removed docs for removed transaction APIs.
2015-04-14 13:52:45 -04:00
Adam Zapletal
872eb26f54
Fixed #24621 -- Fixed and documented SessionBase.pop's second argument
...
Changed SessionBase.pop's second argument to explicitly be default=None
rather than *args since _session is always a dict. Thanks gabor for the
report and Tim Graham for the review.
2015-04-13 10:32:03 -04:00
Adam Chainz
5564d0f2ee
Fixed #24560 -- Added a --dry-run mode to the createcachetable command.
2015-04-09 12:15:50 -04:00
Tim Graham
981e3b9394
Fixed #24429 -- Doc'ed that Django 1.8 doesn't require an integer PK for custom user models.
2015-04-07 10:45:31 -04:00
Christopher Luc
e37d52bd5e
Fixed #22993 -- Deprecated skipIfCustomUser decorator
2015-04-07 09:45:32 -04:00
Patrik Lundin
f9c212d09a
Specified file names for example code in docs/topics/forms/index.txt
2015-04-07 09:35:22 -04:00
Thomas Güttler
566c936236
Added admonition about reusable apps and AUTH_USER_PROFILE.
2015-04-06 19:49:46 -04:00
Sam Thursfield
1119063c69
Fixed #24556 -- Added reminder about HTTPS to passwords docs.
2015-04-03 10:55:11 -04:00
Aymeric Augustin
8520551478
Pointed Jinja2 users to Babel instead of makemessages.
2015-04-01 22:37:11 +02:00
Kostochko Dmitriy
d026eb6366
Fixed typo in docs/topics/cache.txt
2015-03-31 21:15:56 -04:00
Tim Graham
56286542db
Documented jinja2 install requirement.
2015-03-30 20:56:50 -04:00
Jorge Barata González
931a340f1f
Fixed #15590 -- Documented how the path of a FileField can be changed.
...
Thanks simon29 for report, and freakboy3742, floledermann,
jacob, claudep and collinanderson for discussing the task.
2015-03-30 10:38:30 -04:00
Christopher Luc
8119876d4a
Improved docs for timezone handling for auto_now and auto_now_add
...
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.
2015-03-29 22:32:05 +02:00
Tim Graham
6de3a1e2c3
Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
2015-03-28 08:54:59 -04:00
Tim Graham
3e132406e3
Fixed syntax highlighting in docs/topics/auth/default.txt
2015-03-28 07:49:03 -04:00
SaeX
19e41a9799
Fixed typo in docs/topics/forms/modelforms.txt
2015-03-28 07:40:38 -04:00
Caroline Simpson
dc5b01ad05
Fixed #18773 -- Added logging for template variable resolving
...
Added a django.template logger without a default handler. Added
logging if there is an exception while resolving variables in a
template.
2015-03-27 19:19:48 -04:00
David Seddon
0f6f80c2e7
Corrected typo in documentation
2015-03-25 17:38:56 +00:00
Fabio Natali
cb506aed2a
Fixed #23814 -- Documented apps refactored out of Django.
2015-03-25 08:46:23 -04:00
Tim Graham
c633667da3
Fixed #24361 -- Clarified docs on reconfiguring logging.
...
Thanks Tuttle for the report and draft patch, and Carl Meyer for
help and review.
2015-03-24 12:23:03 -04:00
Matt Seymour
fca14cd3f2
Fixed #24501 -- Improved auth.decorators.user_passes_test() example.
2015-03-24 10:30:00 -04:00
Bas Peschier
23a5d64f40
Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.
...
When reversing, only outer parameters are used if captured parameters are
nested. Added tests to check the edge cases and documentation for the
behavior with an example to avoid it.
2015-03-23 08:43:01 -04:00
Iacopo Spalletti
87fed94440
Fixed #23814 -- Pointed localflavor documentation to external package
...
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.
2015-03-22 15:31:54 +01:00
David Seddon
6770b7ecd2
Refs #14645 -- Documented bug with exclude() and multi-value relations
2015-03-20 17:49:07 -04:00
Moritz Sichert
6bb2175ed6
Fixed #22106 -- Allowed using more than one instance of javascript_catalog per project.
2015-03-20 17:27:41 -04:00
Claude Paroz
556eb67701
Fixed #23520 -- Explained that custom plural forms should be avoided
...
Thanks aruseni for the report.
2015-03-20 20:43:11 +01:00
Karl Hobley
81e1a35c36
Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
2015-03-18 19:00:09 -04:00
Claude Paroz
a0c2eb46dd
Fixed #23960 -- Removed http.fix_location_header
...
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-03-18 18:22:50 +01:00
Adrian Andreias
937643a1f2
Fixed allow_migrate() signature in router examples.
2015-03-16 09:39:18 -04:00
Berker Peksag
34fb909180
Fixed #12982 -- Added a get_or_set() method to the BaseCache backend.
2015-03-14 20:07:16 +02:00
Andrei Kulakov
e8a758e941
Fixed #24253 -- Documented staff_member_required decorator.
2015-03-13 14:46:13 -04:00
Andrei Kulakov
b089759d60
Fixed #24052 -- Doc'd how to write data migrations with models in multiple apps.
2015-03-13 13:22:19 -04:00
Remco Kranenburg
f6b09a7f85
Refs #23559 -- warned about consequences of letting users edit User model in admin.
2015-03-13 08:50:48 -04:00
Dan Fellin
6ff826e12e
Fixed typo in docs/topics/forms/modelforms.txt.
2015-03-11 19:57:28 -04:00
saschalalala
5cf8f4596c
Simplified command to display path to Django source files.
...
Python 3 always returns an absolute path.
2015-03-11 10:34:58 -04:00
Tim Graham
d0b01ca452
Fixed typo in docs/topics/forms/modelforms.txt.
2015-03-09 20:49:22 -04:00
Rik
eb9b7abb83
Fixed #21661 -- Expanded authentication views documentation
2015-03-08 20:36:27 +01:00
Daniele Procida
180f75c2a0
Merge pull request #4271 from PsiloLR/ticket_24456
...
Fixed #24456 -- Update modelforms.txt table of Form/Model refs
2015-03-08 10:25:25 +01:00
Psilo Cybin
866e71140f
Fixed #24456 -- Update modelforms.txt table of Form/Model refs
...
Added links to the Form/Model table to the field reference docs to
point to their individual field references
2015-03-08 10:12:53 +01:00
Floris den Hengst
e42a720ba2
Fixed typos and updated spelling wordlist.
2015-03-07 17:59:03 +01:00
Marten Kenbeek
8e744fa150
Stressed authentication should be successful before logging in a user.
2015-03-05 12:17:56 -05:00
Tim Graham
a40a34a4b2
Fixed #13015 -- Clarified language about model instances attached to forms.
2015-03-02 18:44:23 -05:00
Sean Wang
eba6dff581
Fixed #24358 -- Corrected code-block directives for console sessions.
2015-02-22 09:35:39 -05:00
Loic Bistuer
bed504d70b
Fixed #24351 , #24346 -- Changed the signature of allow_migrate().
...
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.
This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583 ;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.
Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.
Refs 22583.
2015-02-20 21:34:09 +07:00
Tim Graham
32b67b3fd1
Added an import to docs/topics/testing/advanced.txt example.
2015-02-17 13:53:20 -05:00
Tim Graham
35f0cae19d
Fixed #24350 -- Freshened up database install topic section.
2015-02-16 14:56:38 -05:00
Carl Meyer
e35c70bef4
Fixed #23892 -- Clarified compatibility policy for migrations.
2015-02-16 10:11:47 -05:00
Aymeric Augustin
15b711b5ee
Deprecated TEMPLATE_DEBUG setting.
2015-02-15 20:47:04 +01:00
Aymeric Augustin
9fbd302f91
Documented how to set up the Jinja2 environment.
...
This may also help with "Why do context processors not work in Jinja2
templates?" etc.
2015-02-15 20:43:34 +01:00
Markus Holtermann
f287bec583
Fixed #24184 -- Prevented automatic soft-apply of migrations
...
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.
Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.
2015-02-13 14:29:59 +01:00
Loic Bistuer
00a889167f
Fixed #24295 -- Allowed ModelForm meta to specify form field classes.
...
Thanks Carl Meyer and Markus Holtermann for the reviews.
2015-02-13 19:13:05 +07:00
Thomas Güttler
e519ee1d35
Clarified timeout=0 in cache docs.
2015-02-12 10:32:26 -05:00
Tim Graham
c5d1a5ef5c
Removed docs about unmigrated apps as they are not supported in Django 1.9.
2015-02-09 10:28:42 -05:00
minusf
aea103b6a5
Removed inaccurate sentence about PO files in translation docs.
2015-02-06 07:45:05 -05:00
Loic Bistuer
71ada3a8e6
Fixed #6707 -- Added RelatedManager.set() and made descriptors' __set__ use it.
...
Thanks Anssi Kääriäinen, Carl Meyer, Collin Anderson, and Tim Graham for the reviews.
2015-02-05 12:45:08 +07:00
Tim Graham
281fc03474
Demoted "Installing a distribution-specific package" in install notes.
2015-02-03 16:35:28 -05:00
darkryder
9ec8aa5e5d
Fixed #24149 -- Normalized tuple settings to lists.
2015-02-03 14:59:45 -05:00
Tim Graham
570912a97d
Added a "Writing migrations" how-to.
2015-02-03 13:09:54 -05:00
Aymeric Augustin
2133f3157e
Fixed #24168 -- Allowed selecting a template engine in a few APIs.
...
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.
Also added a test for render_to_response(status=...) which was missing
from fdbfc980
.
Thanks Tim and Carl for the review.
2015-02-03 08:29:45 +01:00
Matt Westcott
8d64aae883
Fixed #24255 -- Specifed 'fields' parameter in modelformset_factory / inlineformset_factory examples.
2015-02-02 10:46:33 -05:00
Tim Graham
c79faae761
Removed versionadded/changed notes for 1.7.
2015-02-01 21:02:40 -05:00
Andrei Kulakov
dbabf43920
Updated recommendation for testing keyword arg in custom fields.
2015-01-30 08:29:17 -05:00
Florian Apolloner
16ee52d21d
Fixed #24205 -- Deprecated Signal.disconnect weak parameter.
2015-01-23 14:37:12 -05:00
Tim Graham
7e8cf74dc7
Removed support for syncing apps without migrations per deprecation timeline.
...
Kept support for creating models without migrations when running tests
(especially for Django's test suite).
2015-01-18 15:58:06 -05:00
Tim Graham
c3336e7e4f
Removed dumpdata --natural option and serializers use_natural_keys parameter.
...
Per deprecation timeline; refs #13252 .
2015-01-17 20:18:34 -05:00
Tim Graham
4aa089a9a9
Removed support for custom SQL per deprecation timeline.
2015-01-17 10:16:06 -05:00
Tim Graham
67235fd4ef
Removed support for initial_data fixtures per deprecation timeline.
2015-01-17 09:59:25 -05:00
Tim Graham
d038c547b5
Removed django.core.cache.get_cache() per deprecation timeline; refs #21012 .
2015-01-17 09:55:18 -05:00
Tim Graham
f6463bb380
Removed the syncdb command per deprecation timeline.
2015-01-17 09:20:12 -05:00
Tim Graham
fed25f1105
Removed compatibility with Python 3.2.
2015-01-17 09:00:17 -05:00
Tim Graham
c820892eed
Removed django.utils.datastructures.SortedDict per deprecation timeline.
2015-01-17 08:40:23 -05:00
Tim Graham
75f107b884
Removed request.REQUEST per deprecation timeline; refs #18659 .
2015-01-17 08:05:18 -05:00
Tim Graham
b952c3fc60
Removed django.utils.unittest per deprecation timeline.
2015-01-17 07:32:22 -05:00
Rick Hutcheson
996292d649
Fixed a typo in the test responses docs.
2015-01-16 18:17:00 -05:00
Keryn Knight
726a9550db
Fixed #24143 -- Encouraged use of Http404 messages for debugging.
2015-01-16 09:41:01 -05:00
Collin Anderson
26a92619f6
Fixed #24124 -- Changed context_processors in the default settings.py
2015-01-12 13:17:44 -05:00
Marc Tamlyn
b5c1a85b50
Fixed #24118 -- Added --debug-sql option for tests.
...
Added a --debug-sql option for tests and runtests.py which outputs the
SQL logger for failing tests. When combined with --verbosity=2, it also
outputs the SQL for passing tests.
Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and
discussion.
2015-01-12 08:16:08 +00:00
Aymeric Augustin
ee8d5b91e9
Wrote main documentation for templates.
2015-01-10 20:16:19 +01:00
Aymeric Augustin
6c392bb2c0
Moved doc on the DTL's syntax to the ref/ section.
...
This makes room for a more general introduction about templating.
Updated some links to point to the new location, but kept those that
didn't talk specifically about the DTL.
2015-01-10 19:41:14 +01:00
Loic Bistuer
8f4877c89d
Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.
...
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-10 00:30:48 +07:00
Claude Paroz
e0080cf577
Fixed #24083 -- Corrected is_bound nature in forms topic docs
...
Thanks ajenhl Trac user for the report.
2015-01-06 08:56:53 +01:00
Tim Graham
c87ee41954
Fixed #23861 -- Added an API to deprecate model fields.
...
Thanks Markus Holterman and Berker Peksag for review.
2015-01-05 11:35:36 -05:00
Alfred Perlstein
db3f7c15cb
Fixed #23749 -- Documented how to use the database alias in RunPython.
...
Thanks Markus Holtermann for review and feedback.
2015-01-03 12:06:40 -05:00
Tim Graham
52f0b2b622
Updated six to 1.9.0.
2015-01-02 12:35:41 -05:00
Andriy Sokolovskiy
23f1a8dad2
Added return value to Signal.disconnect().
2015-01-02 12:00:41 -05:00
Tim Graham
a7aaabfaf1
Removed doc note about PasswordResetForm requiring an integer PK.
...
This limitation was lifted in refs #14881 .
2015-01-01 11:38:53 -05:00
Andriy Sokolovskiy
8c99b7920e
Fixed #12118 -- Added shared cache support to SQLite in-memory testing.
2014-12-30 10:14:33 -05:00
Aymeric Augustin
9eb4f28e89
Deprecated TEMPLATE_CONTEXT_PROCESSORS.
2014-12-28 17:02:31 +01:00
Aymeric Augustin
d3205e3e2e
Deprecated TEMPLATE_DIRS.
2014-12-28 17:02:30 +01:00
Aymeric Augustin
cf0fd65ed4
Deprecated TEMPLATE_LOADERS.
2014-12-28 17:02:30 +01:00
Aymeric Augustin
d3a982556d
Deprecated TEMPLATE_STRING_IF_INVALID.
2014-12-28 17:02:30 +01:00
Aymeric Augustin
cf1f36bb6e
Deprecated current_app in TemplateResponse and render(_to_response).
2014-12-28 17:02:29 +01:00
Aymeric Augustin
fdbfc98003
Deprecated some arguments of django.shortcuts.render(_to_response).
...
dictionary and context_instance and superseded by context.
Refactored tests that relied context_instance with more modern idioms.
2014-12-28 17:02:29 +01:00
Aymeric Augustin
92e8f1f302
Moved context_processors from django.core to django.template.
2014-12-28 17:00:07 +01:00
Tim Graham
3d0c3a0482
Fixed #24056 -- Fixed syntax highlighting in topics/testing/tools.txt.
2014-12-27 19:49:16 -05:00
Helen Sherwood-Taylor
4ccdf6e57f
Fixed #24041 -- Documented effect of changing a model instance's primary key.
2014-12-24 15:06:09 -05:00
Thomas Tanner
b27db97b23
Fixed #22461 -- Added if-unmodified-since support to the condition decorator.
2014-12-24 12:33:57 -05:00
Frankie Robertson
446b50b90e
Fixed #24035 -- Clarified docs on CACHE_MIDDLEWARE_KEY_PREFIX vs KEY_PREFIX
2014-12-23 14:35:30 -05:00
Alexander Schulze
cf2390be16
Fixed #23959 -- Clarified when checks automatically run.
2014-12-22 11:35:19 -05:00
David Cramer
27f68f8659
Correct scoping of savepoint example
2014-12-20 12:02:26 -08:00
Claude Paroz
337cd09836
Updated some other external links in the docs
2014-12-19 18:07:52 +01:00
Claude Paroz
0a4b04fc23
Used https for most *.python.org links
2014-12-19 18:07:52 +01:00
Markus Holtermann
c7786550c4
Fixed display of lists after website redesign
...
Thanks Brian Jacobel for the report. refs django/djangoproject.com#197
2014-12-17 08:24:00 -05:00
Markus Holtermann
aa5ef0d4fc
Fixed #23822 -- Added support for serializing model managers in migration
...
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin,
Tim Graham, Carl Meyer, and others for their review and input.
2014-12-15 08:34:15 -05:00
Tim Graham
bc88ec550a
Updated advice on six.moves.range/xrange; refs #23812 .
2014-12-13 13:42:25 -05:00
Carl Meyer
d4bdddeefe
Fixed #23982 -- Added doc note on generating Python 2/3 cross-compatible migrations.
...
Thanks Luke Plant for the report, and Tim Graham, Simon Charette, and Markus
Holtermann for review and discussion.
2014-12-12 12:50:39 -07:00
Yohan Boniface
38fc463fbf
Fixed incorrect filter name in docs/topics/i18n/translation.txt.
2014-12-11 12:11:02 -05:00
wrwrwr
34a06d99e0
Cleaned up a note in docs/topics/db/sql.txt.
2014-12-06 09:25:48 -05:00
Young Yang
f0c7a6f360
Fixed #23955 -- Corrected formset fields in topic guide.
2014-12-05 11:31:53 -05:00
Tim Graham
b6ea059b4a
Fixed #23957 -- Started deprecation toward requiring session verification.
...
Thanks Carl Meyer for review.
2014-12-05 07:37:34 -05:00
Thomas Tanner
018d110ef5
Fixed #23911 -- Added support for buffer file uploads in the test client
2014-12-04 07:42:03 -05:00
Tim Graham
dc2d75f4d4
Fixed typo in aggregation docs link.
2014-12-03 20:07:40 -05:00
Benjamin Bach
3ab8d0b8c7
Fixed a typo in aggregation docs.
2014-12-03 19:52:54 -05:00
Benjamin Bach
4b23a6c7a9
Documented a current limitation of multiple table annotation; refs #10060 .
2014-12-03 19:18:55 -05:00
Thomas Chaumeny
da9fe5c717
Fixed #20392 -- Added TestCase.setUpTestData()
...
Each TestCase is also now wrapped in a class-wide transaction.
2014-12-03 10:37:04 -05:00
Martin Blech
e023ceb453
Fixed #23910 -- Added reply_to parameter to EmailMessage
...
Thanks to Berker Peksag and Tim Graham for the review and suggestions.
2014-11-28 06:00:06 -05:00
wrwrwr
d66bda6059
Added notes on registering signals in ready() and using dispatch_uid.
...
Refs #23641 .
2014-11-27 11:22:36 -05:00
wrwrwr
a15aba66f2
Fixed typo in docs/topics/forms/modelforms.txt.
2014-11-27 10:53:06 -05:00
Berker Peksag
093e6c68b9
Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG mode.
2014-11-27 07:55:07 -05:00
Berker Peksag
87bd13617c
Fixed #23847 -- Improved the email_check example in the auth documentation.
2014-11-27 11:52:50 +01:00
wrwrwr
e22c64dfc0
Fixed #23742 -- Added an option to reverse tests order.
...
This is useful for debugging side effects affecting tests that
are usually executed before a given test. Full suite and pair
tests sort cases more or less deterministically, thus some test
cross-dependencies are easier to reveal by reversing the order.
Thanks Preston Timmons for the review.
2014-11-24 19:24:11 -05:00
Thomas Chaumeny
3199ea8ed7
Updated testing documentation following 498ae3a360
...
- commit/rollback are no longer replaced by nop
- the warning about not using TestCase when testing transactional
behavior belongs to TestCase section, not TransactionTestCase
2014-11-24 11:37:03 -05:00
Danilo Bargen
cdee865976
Fixed #23543 -- Added docs on testing management command output.
2014-11-24 10:23:25 -05:00
Kevin Ndung'u
0d74209ef6
Fixed #23900 -- Added missing imports in code example.
...
The Preventing header injection example included
classes that are not imported.
Thanks to Collin Anderson and Berker Peksağ for the
reviews.
2014-11-23 23:03:58 +01:00
Aymeric Augustin
17012b6936
Deprecated dirs argument to override TEMPLATE_DIRS.
...
Cancels 2f0566fa
. Refs #4278 .
2014-11-23 09:29:33 +01:00
Aymeric Augustin
7331788300
Avoided rewrapping Contexts in render_to_response.
...
This change preserves backwards-compatibility for a very common misuse
of render_to_response which even occurred in the official documentation.
It fixes that misuse wherever it happened in the code base and docs.
Context.__init__ is documented as accepting a dict and nothing else.
Since Context is dict-like, Context(Context({})) could work to some
extent. However, things get complicated with RequestContext and that
gets in the way of refactoring the template engine. This is the real
rationale for this change.
2014-11-22 17:58:38 +01:00
Stanislas Guerra
06726965c3
Fixed #23778 -- Added a doc section on using the Django runner for reusable apps.
2014-11-21 12:53:36 -07:00
Berker Peksag
343162410f
Fixed #21753 -- Raised exception when both `form_class` and `fields` are specified.
2014-11-21 14:23:17 -05:00
Carl Meyer
dee3946a91
Fix malformed note directives.
2014-11-17 16:42:54 -07:00
Éric Araujo
cbffc900bb
Fix link target markup
...
This markup for a code block is redundant with the code-block directive below,
and blocks the following line from working as link target.
2014-11-17 16:37:18 -07:00
Marc Tamlyn
d30a131119
Merge pull request #3524 from nmundar/ticket_23690
...
Fixed #23690 - fixed examples of manual rendering of form fields
2014-11-16 09:21:12 +00:00
Berker Peksag
d2d6c0c097
Fixed #21363 -- Added datetime.timedelta support to TimestampSigner.unsign().
2014-11-15 19:36:33 +01:00
Claude Paroz
35dac5070b
Added a new GeoJSON serialization format for GeoDjango
...
Thanks Reinout van Rees for the review.
2014-11-15 18:07:18 +01:00
Yigit Guler
c5132382f0
Fixed #23793 -- Clarified password reset behavior in auth docs
2014-11-15 17:41:01 +01:00
Josh Smeaton
f59fd15c49
Fixed #14030 -- Allowed annotations to accept all expressions
2014-11-15 14:00:43 +00:00
nmundar
48515ee1f7
Fixed #23690 - fixed examples of manual rendering of form fields
...
Documentation for rendering form fields manually is now updated to use fields id_for_label instead of hardcoded values with additional mention of label_tag for alternative generation of complete label tag.
2014-11-15 13:29:16 +01:00
Berker Peksag
d552da1f8d
Fixed #22407 -- Added AdminEmailHandler.send_mail().
2014-11-15 09:38:19 +01:00
Tim Graham
7ef81b5cdd
Removed thread customizations of six which are now built-in.
2014-11-13 10:30:53 +01:00
Tim Graham
40ba6f21bb
Fixed spelling errors in docs.
2014-11-11 16:41:09 +01:00
averybigant
b7a5b6ab86
Fixed #23750 -- Allowed core.checks.register to be used as a function
2014-11-11 16:29:32 +01:00
Tim Graham
e645b79ef5
Added missing docs to DiscoverRunner for keepdb option; refs #20550 .
2014-11-04 14:26:37 -05:00
Tim Graham
f0ff452451
Added a warning about nonexistent FK constraints when unmigrated apps depend on migrated ones.
...
Thanks NotSqrt for the report; refs #23741 .
2014-11-04 07:25:35 -05:00
Berker Peksag
5c517ec218
Fixed versionchanged indentation in docs/.
2014-11-03 21:40:26 -05:00
Thomas Chaumeny
d89f56dc4d
Fixed #21281 -- Made override_settings act at class level when used as a TestCase decorator.
2014-11-03 14:14:39 -05:00
Thomas Chaumeny
d3db878e4b
Moved CSRF docs out of contrib.
2014-11-03 07:47:39 -05:00
Tim Graham
6d0547c1ad
Fixed #23744 -- Fixed typo in selenium testing example.
...
Thanks djbug for the report.
2014-11-01 12:36:28 -04:00
Tim Graham
3f651b3e88
Added a warning about direct settings manipulation in tests.
...
Thanks Thomas Chaumeny for the initial patch.
2014-10-31 13:34:41 -04:00
Simon Charette
f2ddc439b1
Fixed #23656 -- Made FormMixin.get_form's form_class argument optional.
...
Thanks Tim Graham for the review.
2014-10-30 19:10:52 -04:00
Tim Graham
19242c675f
Fixed #23735 -- Clarified that admindocs must be enabled to view template tag libraries in admin.
...
Thanks Aymeric Augustin for the report.
2014-10-30 19:04:10 -04:00
Tim Graham
08c5887f13
Fixed #23734 -- Replaced striptags in template filter overview since it has security implications.
...
Thanks Aymeric Augustin for the suggestion.
2014-10-30 18:26:13 -04:00
Berker Peksag
cbd936d0f8
Fixed #18731 -- Added an example about customizing "makemessages" command.
...
Thanks claudp for the suggestion and review.
2014-10-30 08:22:13 -04:00
Rigel Di Scala
28634394f5
Fixed #23606 -- Implemented Client and RequestFactory trace() methods.
...
Thanks KevinEtienne for the suggestion.
2014-10-28 10:11:12 -04:00
bahoo
af7d66b4f2
Fixed typo in squashing migrations documentation
2014-10-27 14:16:39 -07:00
Ilya Baryshev
ed7c4df1ee
Fixed documentation of make_password kwargs.
2014-10-27 06:36:55 -04:00
Berker Peksag
1387c80643
Fixed versionchanged indentation in topics/testing/advanced.txt.
2014-10-24 15:41:18 -04:00
Berker Peksag
e55fc60f81
Removed unused import from the JSON serialization example.
...
This is a leftover from 5612f54bd5
.
2014-10-21 23:49:40 -04:00
Carl Meyer
2118aa8aea
Clarify that HTTP Accept-Language header is case-insensitive.
2014-10-20 12:01:28 -06:00
Tim Graham
a39df37049
Fixed #20609 -- Added instructions for using AnonymousUser with RequestFactory.
2014-10-20 10:51:25 -04:00
Tim Graham
babbf18999
Fixed some intersphinx references.
2014-10-16 20:00:17 -04:00
Ian Lee
947af46db3
Fixed pep8 in docs/topics/logging.txt
2014-10-15 18:54:15 -04:00
Greg Chapple
9743aa5436
Clarified documentation relating to usage of serialized_rollback for certain classes
2014-10-14 17:13:37 +01:00
Nadja Deininger
905a9a263b
Fixed #23534 -- Added documentation on blocktrans tags
...
Mentioned that other block tags are not allowed inside
a blocktrans template tag.
Thanks to edu2004eu for reporting the issue.
2014-10-13 16:52:09 +01:00
Tom Dyson
8701b59007
Cleaned up the Memcached cache backend doc
...
Consistent casing, minor typo fixes, reduced rhetoric.
2014-10-13 12:19:05 +01:00
Loic Bistuer
bf1bb07bf0
Updated release notes following backport of a407b84
. Refs #23365 .
2014-10-09 22:48:27 +07:00
Ismail Badawi
e501d4c505
Fixed #23597 -- Clarified the manager that {Single,Multiple}ObjectMixin.model uses.
2014-10-06 08:23:42 -04:00
Thomas Chaumeny
6baa46cb8b
Updated assertQuerysetEqual documentation following 311b3ad9db
2014-10-05 23:13:04 +02:00
Rudy Mutter
a407b846b4
Fixed #23365 -- Added support for timezone-aware datetimes to migrations.
2014-09-29 20:45:43 -04:00
Duane Hilton
054bdfeff1
Fixed #17638 -- Added crosslinks between topic and reference guides.
...
Thanks oinopion for the suggestion and jarus for the initial patch.
2014-09-29 18:06:31 -04:00
Greg Brown
9e8658db51
Fixed typo in docs/topics/db/managers.txt
2014-09-29 07:45:28 -04:00
Carl Meyer
f5c932ddec
How many is two?
2014-09-26 11:23:46 -06:00
Carl Meyer
d16bc7f0e4
Fixed #23561 -- Corrected a security doc example that requires an unquoted HTML attribute.
...
Thanks "djbug" for the report.
2014-09-26 11:07:55 -06:00
Claude Paroz
5066fda34d
Replaced input by textarea in forms docs
2014-09-25 15:09:12 +02:00
Tim Graham
a4f23eba2e
Fixed #23421 -- Corrected TEST SERIALIZE setting.
...
Thanks gkoller for the report.
2014-09-24 14:46:10 -04:00
Markus Holtermann
066e672d79
Fixed #23473 -- Documented that @deconstructible classes need __eq__.
2014-09-24 14:19:11 -04:00
Thomas Grainger
21683011d5
Added SuspiciousOperation to list of caught exceptions in testing docs.
2014-09-24 13:04:11 -04:00
Corey Farwell
37b13033c6
Removed sudo from pip commands in docs.
2014-09-22 15:49:48 -04:00
Ola Sitarska
b9b8895acb
Fixed #23527 -- Removed Cheetah references in docs
...
Thanks to @aaugustin for submitting the ticket.
2014-09-21 18:03:31 +02:00
Ola Sitarska
ee442e97da
Fixed #23529 -- Replaced comments tag library with humanize in docs
2014-09-21 17:31:13 +02:00
Aymeric Augustin
d18579d219
Small fixes in templates topic guide.
...
>>> from django.template.defaultfilters import register
>>> len(register.filters)
57
2014-09-20 19:23:22 +02:00
José Padilla
5472d18e31
Fixed #23461 -- Added EMAIL_TIMEOUT setting
2014-09-13 09:33:21 -04:00
Tim Graham
52ef6a4726
Fixed #17101 -- Integrated django-secure and added check --deploy option
...
Thanks Carl Meyer for django-secure and for reviewing.
Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and
Jorge Carleitao for reviews.
2014-09-12 15:05:23 -04:00
Gabe Jackson
c5b4145fca
Added link to LogRecord attributes in logging.txt
2014-09-11 21:37:16 +02:00