0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
Commit Graph

2036 Commits

Author SHA1 Message Date
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