Claude Paroz
7442eb1a24
Fixed #20224 -- Update docs examples which mention __unicode__
...
Thanks Marc Tamlyn and Tim Graham for the review.
2013-07-05 19:27:07 +02:00
Tim Graham
da5069f68f
Fixed #20134 -- Correct list of fields that UserManager requires.
...
Thanks semenov and pegler.
2013-07-04 10:19:00 -04:00
Tim Graham
231e31c690
Fixed #20690 -- Mentioned LOCALE_PATHS earlier in translation docs.
...
Thanks rene@ for the suggestion.
2013-07-04 05:44:22 -04:00
SusanTan
067e0424ce
Fixed #20609 -- Documented how to use request.user with RequestFactory
...
Thanks michel@ for the suggestion.
2013-07-03 11:05:03 -04:00
Tomáš Ehrlich
c5bc98d7e1
Fixed #20687 -- Added documentation for django.core.signing API.
...
Thanks Baptiste Mispelon for the suggestion.
2013-07-03 10:36:21 -04:00
Ben Firshman
8160e6341d
Fix "semicolon" in docs
2013-07-02 17:52:54 +01:00
Aymeric Augustin
6c66a41c3d
Relied on NullHandler from the logging stdlib module.
2013-07-01 23:16:25 +02:00
Aymeric Augustin
72c65fea41
Deprecated django.utils.dictconfig.
...
The module still exists for whoever uses it in its current state, but it
isn't imported by Django anywhere.
2013-07-01 22:50:58 +02:00
Aymeric Augustin
cfcf4b3605
Stopped using django.utils.unittest in the test suite.
...
Refs #20680 .
2013-07-01 14:29:33 +02:00
Aymeric Augustin
7f264e02f4
Fixed #20680 -- Deprecated django.utils.unittest.
...
Refs #19204 .
2013-07-01 14:29:33 +02:00
Baptiste Mispelon
88de53d4a8
Fixed #20659 -- Fixed PublisherDetail in CBV topic documentation.
...
Thanks to tudor.prodan, susan, and Tim Graham for the report and reviews.
2013-07-01 14:05:49 +02:00
Aymeric Augustin
a763915a03
Bumped minimum Python version requirement to 2.7 in Django 1.7.
2013-07-01 12:01:59 +02:00
Aymeric Augustin
3fd8eb1a27
Stopped branding Python 3 support as experimental.
...
Forward-port of 0de21a6
from stable/1.6.x.
2013-07-01 11:52:37 +02:00
Ramiro Morales
c196564132
Removed custom profile model functionality as per deprecation TL.
2013-06-28 21:48:16 -03:00
Shai Berger
d097417025
Support 'pyformat' style parameters in raw queries, Refs #10070
...
Add support for Oracle, fix an issue with the repr of RawQuerySet,
add tests and documentations. Also added a 'supports_paramstyle_pyformat'
database feature, True by default, False for SQLite.
Thanks Donald Stufft for review of documentation.
2013-06-28 06:59:10 +03:00
Aymeric Augustin
c1284c3d3c
Fixed #20571 -- Added an API to control connection.needs_rollback.
...
This is useful:
- to force a rollback on the exit of an atomic block without having to
raise and catch an exception;
- to prevent a rollback after handling an exception manually.
2013-06-27 22:19:54 +02:00
Andrew Godwin
e26b589b8c
Fixed #20590 : Documented new test case ordering
2013-06-27 14:02:00 +01:00
Tim Graham
1184d07789
Fixed #14881 -- Modified password reset to work with a non-integer UserModel.pk.
...
uid is now base64 encoded in password reset URLs/views. A backwards compatible
password_reset_confirm view/URL will allow password reset links generated before
this change to continue to work. This view will be removed in Django 1.7.
Thanks jonash for the initial patch and claudep for the review.
2013-06-26 13:11:47 -04:00
Loic Bistuer
c6862d57c1
Fixed #20658 -- Fixed bad reST formatting and missing parentheses in the docs for CBV mixins
...
Thanks to Keryn Knight for the report.
2013-06-26 14:07:52 +02:00
Tim Graham
e161e4ff11
Clarified get_list_or_404 docs, refs #14150 .
2013-06-24 07:00:53 -04:00
Baptiste Mispelon
cd000dacc7
Fixed #20643 -- Fixed implementation of JSONResponseMixin in CBV docs
...
Thanks to Michal Sládek for the report and initial patch,
and to loic84 for the review.
2013-06-24 11:55:43 +02:00
Simon Meers
6466a0837b
Corrected minor typos in FileUploadHandler.receive_data_chunk docs.
2013-06-24 13:59:03 +10:00
Baptiste Mispelon
bd9fbd1497
Fixed errors and inconsistencies in CBV topic documentation.
...
The code examples should now work correctly.
The `get_context_data` method in the examples was changed when
necessary to adopt a singular style (get context with super(...),
add the extra keys to the dict then return it).
Thanks to Remco Wendt for the initial report and to Tim Graham
for the review.
2013-06-23 00:18:23 +02:00
Baptiste Mispelon
b53ed5ac55
Fixed #20612 -- Fixed incorrect wording in CBV documentation
...
Thanks to ndokos for the report.
2013-06-21 17:50:43 +02:00
Baptiste Mispelon
b0b506b933
Fixed broken reference in documentation.
2013-06-19 10:37:24 +02:00
Erik Romijn
2c4fe761a0
Fixed #20593 -- Allow blank passwords in check_password() and set_password()
2013-06-18 13:32:54 -04:00
Baptiste Mispelon
1b7634a0d0
Fixed #20464 -- Added a `total_error_count` method on formsets.
...
Thanks to frog32 for the report and to Tim Graham for the review.
2013-06-16 15:49:30 -04:00
Tim Graham
a1122e14a6
Fixed #20604 - Fixed file example in docs.
...
Thanks Chris Lasher for the report.
2013-06-14 21:28:17 -04:00
Loic Bistuer
9e50833e22
Fixed #20000 -- Allowed ModelForm meta overrides for label, help_text and error_messages
2013-06-13 15:06:25 -04:00
Danilo Bargen
cd7d7452bc
Fixed order of base classes in CBV mixin docs
2013-06-13 14:59:13 +02:00
Aymeric Augustin
55cbd65985
Fixed #20579 -- Improved TransactionTestCase.available_apps.
...
Also moved its documentation to the 'advanced' section. It doesn't
belong to the 'overview'. Same for TransactionTestCase.reset_sequences.
When available_apps is set, after a TransactionTestCase, the database
is now totally empty. post_syncdb is fired at the beginning of the next
TransactionTestCase.
Refs #20483 .
2013-06-12 20:01:41 +02:00
Wilfred Hughes
b79aa796d8
FormSet.forms is an iterable, so just iterate over it
2013-06-11 16:05:19 +01:00
Tim Graham
9ff5f100dd
Fixed #20578 - Typo in BaseFormSet module name
2013-06-10 14:36:40 -04:00
Gabe Jackson
584bd14dcf
Fixed #18134 -- BoundField.label_tag now includes the form's label_suffix
...
There was an inconsistency between how the label_tag for forms were
generated depending on which method was used: as_p, as_ul and as_table
contained code to append the label_suffix where as label_tag called on a
form field directly did NOT append the label_suffix. The code for
appending the label_suffix has been moved in to the label_tag code of
the field and the HTML generation code for as_p, as_ul and as_table now
calls this code as well.
This is a backwards incompatible change because users who have added the
label_suffix manually in their templates may now get double label_suffix
characters in their forms.
2013-06-10 14:23:15 -04:00
Aymeric Augustin
4daf570b98
Added TransactionTestCase.available_apps.
...
This can be used to make Django's test suite significantly faster by
reducing the number of models for which content types and permissions
must be created and tables must be flushed in each non-transactional
test.
It's documented for Django contributors and committers but it's branded
as a private API to preserve our freedom to change it in the future.
Most of the credit goes to Anssi. He got the idea and did the research.
Fixed #20483 .
2013-06-10 11:24:10 +02:00
Tim Graham
4e94c84e50
Fixed #19875 - Added warnings regarding DEBUG=False and empty ALLOWED_HOSTS
2013-06-09 15:05:15 -04:00
Kenny Rachuonyo
4bd6e5e895
Update media.txt
...
Fixed typo: froms -> forms
2013-06-09 08:23:48 +03:00
Jacob Kaplan-Moss
357d62d9f2
Explained that timezone.now() always returns times in UTC.
...
The docs were ambiguous about the time zone for now(), leading people to
assume that it would be the current time zone rather that UTC.
2013-06-06 11:05:33 -05:00
Tim Graham
bb863faecd
Proofed the 1.6 release notes
2013-06-05 12:55:58 -04:00
Tim Graham
a35ed20241
Fixed #18924 -- Made test.Client.logout send user_logged_out signal.
...
Thanks awsum for the suggestion and Pavel Ponomarev and
Florian Hahn for the patch.
2013-06-04 12:39:09 -04:00
Tim Graham
f315693304
Fixed #20543 - Typo in db model fields docs.
...
Thanks i.amber.jain@ for the report.
2013-06-01 05:48:38 -04:00
Tim Graham
f10e9af227
Fixed #20166 - Corrected TEST_DEPENDENCIES example in testing docs.
...
Thanks czambran.
2013-05-31 08:18:29 -04:00
Claude Paroz
3d883e8bd9
Merge pull request #1232 from fusionbox/normalize_email
...
Fixed #20531 -- Don't hard-code class names when calling static methods
2013-05-31 00:56:56 -07:00
Ramiro Morales
ac90aee55c
Tweak caching decorators/utility functions xrefs.
2013-05-30 20:38:44 -03:00
Gavin Wahl
01ae881bb4
Don't hard-code class names when calling static methods
...
normalize_email should be called on the instance, not the class. This
has the same effect normally but is more helpful to subclassers. When
methods are called directly on the class, subclasses can't override
them.
2013-05-29 16:11:26 -06:00
Tim Graham
1fdc3d256d
Fixed #20523 - Incorrect form field for FilePathField.
...
Thanks sane4ka.sh@ for the report.
2013-05-28 11:54:53 -04:00
Tim Graham
8365d76da0
Fixed #20513 - Expanded docs on QuerySet caching.
...
Thanks seddonym.
2013-05-28 08:41:13 -04:00
Tim Graham
d194714c0a
Fixed #11603 - Added django.test.SimpleTestCase.assertFormsetError
...
Thank-you Martin Green for the patch.
2013-05-27 12:25:35 -04:00
yishaibeeri
f077f89198
Patch for ticket #20506 - documentation type
2013-05-27 11:14:38 +03:00
Preston Holmes
d228c1192e
Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation.
...
SuspiciousOperations have been differentiated into subclasses, and
are now logged to a 'django.security.*' logger. SuspiciousOperations
that reach django.core.handlers.base.BaseHandler will now return a 400
instead of a 500.
Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft
for review.
2013-05-25 16:27:34 -07:00
Tim Graham
dffdca1109
Fixed #20316 - Clarified transaction behavior of TestCase.
...
Thanks uberj@ for the report and lolek09 for the patch.
2013-05-23 10:57:44 -04:00
Panagiotis H.M. Issaris
6845dc7e8f
Fixed comments for translators example in the i18n documentation
...
The documentation regarding adding a comment for translators was confusing
as the example contained mismatching tags.
2013-05-23 10:19:10 +02:00
Tim Graham
2fd61285d1
Fixed #20471 - Typos in topics/forms/formsets.txt
2013-05-20 13:56:19 -04:00
Ryan Kaskel
4280217f31
Fixed #20403 -- Ignore forms marked for deletion when validating max_num.
2013-05-20 12:13:21 -04:00
Aymeric Augustin
6633eeb886
Changed API to disable ATOMIC_REQUESTS per view.
...
A decorator is easier to apply to CBVs. Backwards compatibility isn't an
issue here, except for people running on a recent clone of master.
Fixed a few minor problems in the transactions docs while I was there.
2013-05-19 19:53:16 +02:00
Tim Graham
41bea033b7
Fixed #20183 - Clarified docs assumption that certain objects exist in database.
...
Thanks Tomasz Jaskowski for the patch.
2013-05-19 11:31:27 -04:00
leandrafinger
08b501e7d3
add missing imports to the examples in the 'Forms'
2013-05-19 13:31:45 +02:00
Silvan Spross
1d543949d7
Add missing imports and models to the examples in internationalization and localization documentation
2013-05-19 13:30:01 +02:00
Tim Graham
cc62cbed76
Fixed some line wrapping, refs #20233
2013-05-19 06:51:55 -04:00
Aymeric Augustin
753edfa4b5
Fixed a rest mistake I introduced in d5ce2ff
.
2013-05-19 12:14:44 +02:00
Marc Tamlyn
d9c01da1f8
Improve cookie based session backend docs.
...
Note the don't require sessions to be in installed apps.
2013-05-19 11:24:35 +02:00
Andrew Godwin
cf56536ac7
Merge pull request #1145 from postrational/ticket_20233
...
Fixed #20233 - Full custom user model example isn't really full
2013-05-19 02:00:50 -07:00
postrational
0b3a6ead88
refs #20233 - Full custom user model example isn't really full
...
Addition and fix for custom user model example documentation.
https://code.djangoproject.com/ticket/20233
2013-05-19 10:48:30 +02:00
Marc Tamlyn
33c361ef9d
Merge pull request #1129 from frog32/master
...
Add needed Imports to the Documentation
2013-05-19 01:37:25 -07:00
Ramiro Morales
0a50311063
Fixed #20004 -- Moved non DB-related assertions to SimpleTestCase.
...
Thanks zalew for the suggestion and work on a patch.
Also updated, tweaked and fixed testing documentation.
2013-05-18 19:04:34 -03:00
Silvan Spross
cd72c55d86
Add missing imports and models to the examples in the view layer documentation
2013-05-18 18:39:11 +02:00
Marc Egli
e4591debd1
Add missing imports and models to the examples in the the model layer documentation
2013-05-18 18:38:52 +02:00
Łukasz Langa
bd97f7d0cb
Fixed #15201 : Marked CACHE_MIDDLEWARE_ANONYMOUS_ONLY as deprecated
2013-05-18 17:38:32 +02:00
Tim Graham
96cabba808
Fixed #20335 - Documented the {% language %} template tag.
...
Thanks bmispelon for the suggestion and djangsters for the patch.
2013-05-18 11:20:02 -04:00
Erik Romijn
d5ce2ff5e4
Fixed #20444 -- Cookie-based sessions does not include a remote code execution-warning
2013-05-18 16:53:13 +02:00
Jacob Burch
89955cc35f
Fixed #9595 -- Allow non-expiring cache timeouts.
...
Also, streamline the use of 0 and None between cache backends.
2013-05-18 15:39:42 +02:00
Erik Romijn
756b81dbd1
Fixed #13546 -- Easier handling of localize field options in ModelForm
2013-05-18 14:13:00 +02:00
Marc Tamlyn
9666874ee1
Tidy up some of the transaction documentation.
2013-05-17 18:40:50 +02:00
Florian Apolloner
10e397e263
Fixed #20426 -- Added some extra info to the auth forms.
...
Thanks to Joel Hansson for the suggestion and Curtis Maloney for the initial
patch.
2013-05-17 16:14:23 +02:00
Stefan hr Berder
746d3166d6
small typo, example pk=27 but description pk=24
2013-05-16 15:21:18 +08:00
Aymeric Augustin
c8dcee9a42
Improved the timezone middleware example slightly.
...
This change avoids having the timezone leak from a request to the next.
2013-05-15 16:43:39 +02:00
Tim Graham
84d8b247d2
Fixed #20165 - Updated testing example to use django.test.TestCase.
...
Thanks Lorin Hochstein.
2013-05-15 06:48:17 -04:00
Donald Stufft
8f0a4665d6
Recommend using the bcrypt library instead of py-bcrypt
...
* py-bcrypt has not been updated in some time
* py-bcrypt does not support Python3
* py3k-bcrypt, a port of py-bcrypt to python3 is not compatible
with Django
* bcrypt is supported on all versions of Python that Django
supports
2013-05-13 23:49:00 -04:00
Tim Graham
1708c8afb6
Merge pull request #1053 from makto/patch-1
...
Fixed #20394 - Clarified argument of get_user in docs
2013-05-13 11:02:30 -07:00
Tim Graham
897e4eab65
Fixed #20398 - Added language selection code to example in documentation
...
Thanks ggbaker for the suggestion and Simeon Visser for the patch.
2013-05-13 13:43:28 -04:00
Ramiro Morales
956973ca6c
Updated test failure example.
2013-05-12 17:29:34 -03:00
zhongqi
1172bef998
Update customizing.txt
...
The origin statement "which could be ... or whatever" **misguides** many newbies like me.
In fact, the ``login`` function in ``contrib.auth`` stores ``user.pk`` in session, then ``get_user`` function in ``contrib.auth`` gets ``user.pk`` in session and then passes it to your custom ``get_user`` as ``user_id``.
Which means, ``user_id`` prarameter in your custom ``get_user`` has to be the primary key of ``User`` object, too.
2013-05-11 15:53:54 +08:00
Carl Meyer
9012833af8
Fixed #17365 , #17366 , #18727 -- Switched to discovery test runner.
...
Thanks to Preston Timmons for the bulk of the work on the patch, especially
updating Django's own test suite to comply with the requirements of the new
runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the
patch and the discovery runner.
Refs #11077 , #17032 , and #18670 .
2013-05-10 23:08:45 -04:00
Aymeric Augustin
bdd285723f
Fixed #20385 -- Typo in files docs.
2013-05-10 13:23:57 +02:00
Luke Plant
f026a519ae
Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut
...
This also updates all dependent functionality, including modelform_factory
and modelformset_factory, and the generic views `ModelFormMixin`,
`CreateView` and `UpdateView` which gain a new `fields` attribute.
2013-05-09 16:44:36 +01:00
Carl Meyer
d89b421352
Python 2.5 is not relevant to master.
2013-05-07 17:05:37 -06:00
Mike Fogel
1ad83145df
Remove outdated ForeignKey manager documentation.
2013-05-07 10:06:15 -04:00
Tim Graham
bc02a963db
Fixed #20177 - Corrected docs for django.test.utils.setup_test_environment.
...
Thanks vlad.london.uk@ for the report.
2013-05-06 13:55:02 -04:00
Tim Graham
e886808994
Fixed #20274 - Added some clarifying section headings in the test docs.
2013-05-06 13:45:24 -04:00
Christopher Allen-Poole
a96bff179a
Found a mistake in SQL documentation
2013-05-05 11:01:45 -04:00
Ana Krivokapic
cee96b87c0
Fix two typos in database transactions docs
2013-04-30 18:38:59 +02:00
Aymeric Augustin
1267d2d9bc
Fixed #20330 -- Normalized spelling of "web server".
...
Thanks Baptiste Mispelon for the report.
2013-04-29 19:40:43 +02:00
Thomas Thurman
b47b0211f5
Corrected "it's" to "its" when used possessively.
...
Fixed #20327 .
2013-04-29 17:21:37 +02:00
Baptiste Mispelon
73c26f0c95
Fixed #20270 -- Fixed error in AjaxResponseMixin documentation
2013-04-22 20:00:50 +02:00
Juan Catalano
78c842a323
Adapted uses of versionchanged/versionadded to the new form.
...
Refs #20104 .
2013-04-20 17:18:35 +02:00
Aymeric Augustin
bfe25de429
Explained the pattern for special methods compatibility.
2013-04-19 09:53:50 +02:00
Tim Graham
9f7b277d2e
Fixed #20285 - Added missing commas in translation docs.
...
Thanks cody.j.b.scott@
2013-04-18 13:44:20 -04:00
Claude Paroz
58b3a974fc
Fixed #20266 -- Updated view example in CBV introduction
...
Thanks jim at hellolocals.com for the report.
2013-04-16 08:59:55 +02:00
Simon Charette
1de63cccb1
Fixed #20263 -- Corrected wording in the formset documentation.
...
Thanks to feraudyh at yahoo.com for the report.
2013-04-15 12:19:17 -04:00
Tim Graham
c852d45681
Fixed #20204 - Consistent usage of url() in URL dispatcher documentation
...
Thanks Baptiste Mispelon for the patch and dave.lampton@ for the suggestion.
2013-04-10 20:38:25 -04:00