Alasdair Nicol
81f454a322
Update link to jQuery Cookie plugin site
2013-05-24 14:36:17 +01:00
Paul Tax
fb1d813484
Link to active fork for ODBC backend
...
It took me quite some time to find if and where the ODBC backend was maintained.
I found (on djangoproject.com):
http://code.google.com/p/django-pyodbc/ (last commit about 3 years ago)
then:
https://github.com/avidal/django-pyodbc avidal fork.
then:
https://github.com/aurorasoftware/django-pyodbc/ aurorasoftware version which has avidal improvements merged.
Avidals version now links to https://github.com/aurorasoftware/django-pyodbc/ which is also the version installed through PIP.
2013-05-24 13:37:20 +03:00
Gavin Wahl
48424adaba
Fixed #17648 -- Add `for_concrete_model` to `GenericForeignKey`.
...
Allows a `GenericForeignKey` to reference proxy models. The default
for `for_concrete_model` is `True` to keep backwards compatibility.
Also added the analog `for_concrete_model` kwarg to
`generic_inlineformset_factory` to provide an API at the form level.
2013-05-23 19:03:14 -04:00
Claude Paroz
b664cb818d
Fixed #19237 (again) - Made strip_tags consistent between Python versions
2013-05-23 14:01:27 +02:00
Donald Stufft
3de1288042
Fixed #11398 - Added a pre_syncdb signal
2013-05-23 01:09:22 -04:00
Russell Keith-Magee
11b06532f7
Merge pull request #1198 from KrzysiekJ/http-patch-method
...
Fixed #20478 – Added support for HTTP PATCH method in generic views.
2013-05-22 17:19:43 -07:00
Tim Graham
8c2c178a09
Fixed a broken link introduced in a542b808ba
.
2013-05-22 08:51:16 -04:00
Krzysztof Jurewicz
ee8b810b97
Fixed #20478 – Added support for HTTP PATCH method in generic views.
2013-05-22 14:48:11 +02:00
Tim Graham
90a6c3aaf0
Merge pull request #1196 from selwin/last-doc-fix
...
Slightly reworded 'last()' docs
2013-05-21 17:35:33 -07:00
Aymeric Augustin
5d16456991
Fixed #20476 -- Typo.
2013-05-21 21:29:14 +02:00
Selwin Ong
375e275030
Slightly reworded 'last()' docs.
2013-05-21 23:18:35 +07:00
Selwin Ong
ea9a0857d4
Fixed #19326 -- Added first() and last() methods to QuerySet
2013-05-21 18:52:28 +03:00
Wiktor Kolodziej
cec9558fba
Fixed #17308 -- Enabled the use of short_description on properties in the admin.
2013-05-21 13:19:18 +02:00
Łukasz Langa
a542b808ba
Removed a confusing duplicate SESSION_COOKIE_DOMAIN header
...
The note is clearly a part of MESSAGE_STORAGE documentation. As a separate
section, it broke automatic link generation on the HTML version of the
documentation.
2013-05-21 00:53:40 +02:00
Tim Graham
d9d24c4521
Fixed warnings in admindocs; refs #20126 .
2013-05-20 10:17:49 -04:00
Alasdair Nicol
428875775c
Fix typo in redirect view docs
2013-05-20 00:59:17 +02:00
Tim Graham
e83ff42792
Fixed #20459 - Improved example for setting HTTP header fields.
...
Thanks Jérémie Blaser.
2013-05-19 12:30:53 -04:00
Preston Holmes
6786920fd8
Fixed #16330 -- added --pks option in dumpdata command
...
Thanks to guettli for the initial ticket and patch, with additional work
from mehmetakyuz and Kevin Brolly.
2013-05-19 09:10:40 -07:00
Bozidar Benko
2d309a7043
Fixed #15961 -- Modified ModelAdmin to allow for custom search methods.
...
This adds a get_search_results method that users can override to
provide custom search strategies.
Thanks to Daniele Procida for help with the docs.
2013-05-19 16:45:00 +02:00
Marc Tamlyn
c6855e8a70
Merge pull request #1162 from sspross/patch-docs
...
Add needed Imports to the Documentation, Part II
2013-05-19 05:26:13 -07:00
Pablo Recio
65f9e0affd
Fixes #18896 . Add tests verifying that you can get IntegrityErrors using get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
2013-05-19 14:16:12 +02:00
vkuzma
1fe587d80b
Add missing imports and models to the examples in the admin documentation
2013-05-19 13:35:19 +02:00
leandrafinger
08b501e7d3
add missing imports to the examples in the 'Forms'
2013-05-19 13:31:45 +02:00
Silvan Spross
6a479955f0
Add missing imports and models to the examples in security documentation
2013-05-19 13:29:49 +02:00
Silvan Spross
7264e5c661
Add missing imports and models to the examples in the template layer documentation
2013-05-19 13:29:38 +02:00
Łukasz Langa
660762681c
Fixed #20126 -- XViewMiddleware moved to django.contrib.admindocs.middleware
2013-05-19 13:18:35 +02:00
Aymeric Augustin
cb86f707a0
Fixed #12747 -- Made reason phrases customizable.
2013-05-19 13:14:54 +02:00
Marc Tamlyn
886f7cc751
Merge pull request #1098 from zsiciarz/ticket-16829
...
Added example of using sitemaps with static views.
2013-05-19 03:27:33 -07:00
bbjay
56d6fdbbf5
Fixed #20452 -- Rename 'headers' to 'header fields'.
2013-05-19 11:48:57 +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
Donald Stufft
398841d6d3
Merge branch 'allow-any-iterable-for-choices'
2013-05-18 11:31:16 -04:00
Erik Romijn
56e2f6ccae
Fixed #20446 -- Documentation for SmallIntegerField does not clarify 'small'
2013-05-18 17:16:07 +02:00
Donald Stufft
a19e9d80ff
Fixed #20430 - Enable iterable of iterables for model choices
...
Allows for any iterable, not just lists or tuples, to be used as
the inner item for a list of choices in a model.
2013-05-18 11:14:05 -04:00
Claude Paroz
90f1170bb9
Fixed #20269 -- Adapted PostGIS template create script for CentOS/RHEL
...
Thanks Stephane Benchimol for the report and the initial script and
mfandreas for the patch.
2013-05-18 14:29:43 +02:00
Zbigniew Siciarz
d77082b438
Added example of using sitemaps with static views.
...
References #16829 .
2013-05-18 14:27:29 +02:00
Erik Romijn
756b81dbd1
Fixed #13546 -- Easier handling of localize field options in ModelForm
2013-05-18 14:13:00 +02:00
Aymeric Augustin
7b85ef9dfb
Fixed #20408 -- Clarified that values_list() doesn't return a list.
...
Thanks marktranchant, bmispelon, and alextreme.
2013-05-18 12:46:12 +02:00
Zbigniew Siciarz
0b0741602b
Fixed #20294 -- Documented context processors in TemplateResponseMixin.
2013-05-18 12:45:40 +02:00
Claude Paroz
b16b72d415
Fixed #5472 --Added OpenLayers-based widgets in contrib.gis
...
Largely inspired from django-floppyforms. Designed to not depend
on OpenLayers at code level.
2013-05-17 13:33:40 +02:00
Tim Graham
289afc3156
Fixed #20421 - Typo in class-based view docs.
2013-05-16 09:56:30 -04:00
Tim Graham
b5b63079bd
Fixed #19712 - Clarified admindocs regarding which attributes appear.
...
Thanks Daniele Procida for the report.
2013-05-16 08:09:20 -04:00
Marc Tamlyn
cde820bd31
Make the example usage of import_by_path less confusing.
...
Using import_by_path to import import_by_path is a really odd use case
and makes the code example difficult to read.
2013-05-16 10:11:46 +02:00
Daniel Lindsley
33793f7c3e
Fixed #19934 - Use of Pillow is now preferred over PIL.
...
This starts the deprecation period for PIL (support to end in 1.8).
2013-05-14 19:32:04 -07:00
Tim Graham
8035533557
Merge pull request #1039 from cannona/master
...
Clarified what unique_for_date considers
2013-05-14 16:01:24 -07:00
Wilfred Hughes
d258cce482
Fixing a minor spelling mistake in the queryset documentation
2013-05-14 11:40:33 +01:00
Simeon Visser
b9efc03e6d
Fixed #20397 - Cleaned up issue with quotation marks in documentation
2013-05-12 20:24:48 +01:00
Tim Graham
2c62a509de
Fixed #20136 - Fixed and expanded the docs for loaddata and model signals.
...
Thanks brandon@ and Anssi for the report.
2013-05-11 19:34:02 -04: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
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
Aymeric Augustin
3d595c3bc3
Fixed #20215 -- Disabled persistent connections by default.
2013-05-09 15:42:14 +02:00
Aymeric Augustin
7476d96f83
Marked tests of BinaryFields as expected failures on MySQL and Python 3.
...
Current ports of MySQLdb are very buggy in this area.
2013-05-08 15:48:39 +02:00
Aymeric Augustin
e81e319f15
Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.
...
Made a few minor compatibility adjustments.
2013-05-08 13:05:09 +02:00
Aymeric Augustin
1fff8daf88
Fixed test failures on MySQL.
...
Some tests failed when the time zone definitions were loaded in MySQL
and pytz wasn't installed. This setup isn't supported.
2013-05-08 13:03:36 +02:00
Aaron Cannon
291250f7b6
Added clarification to the docs, pointing out that unique_for_date only considers the date portion of DateTime fields.
2013-05-03 08:46:53 -05:00
Michael Manfre
6bdeed1b81
Fixed #20338 - Document FQDN behavior with ALLOWED_HOSTS
2013-05-01 12:13:44 -06:00
Aymeric Augustin
ce45240df4
Fixed #20336 -- Removed obsolete paragraph from the docs.
...
Thanks Baptiste Mispelon.
2013-04-30 21:40:16 +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
Juan Catalano
78c842a323
Adapted uses of versionchanged/versionadded to the new form.
...
Refs #20104 .
2013-04-20 17:18:35 +02:00
Claude Paroz
5306285ce2
Complemented documentation following commit be9ae693c
...
Refs #17840 . Thanks Carl Meyer for noticing the omission.
2013-04-18 20:38:07 +02:00
Simon Charette
b0bbccf630
Fixed #20262 -- Replaced a reference to the wrong model in the CBV doc.
...
Thanks to mossplix for the review and bmispelon for the review.
2013-04-15 16:23:35 -04:00
Claude Paroz
bfb2504402
Added a tip about --layer param of ogrinspect for databases
...
Refs #20260 .
2013-04-15 18:28:20 +02:00
Baptiste Mispelon
9ac4dbd7b5
Fixed #4592 : Made CheckboxSelectMultiple more like RadioSelect
...
I refactored RadioSelect and CheckboxSelectMultiple to
make them inherit from a base class, allowing them to share
the behavior of being able to iterate over their subwidgets.
Thanks to Matt McClanahan for the initial patch and to
Claude Paroz for the review.
2013-04-13 16:37:27 +02:00
Baptiste Mispelon
c4186c2fec
Fixed #4117 : Apply id attribute to the outer <ul> of RadioSelect
2013-04-13 12:23:25 +02:00
Baptiste Mispelon
844fbc85c1
Fixed #19874 : Apply id attribute to the outer <ul> of CheckboxSelectMultiple
2013-04-13 11:09:47 +02:00
Claude Paroz
d58e985aaa
Fixed #20252 -- Mentionned geojson Spatialite support from 1.5
...
Thanks burton449geo at gmail.com for the report.
2013-04-12 20:59:56 +02:00
Tim Graham
8fc68af9c0
Fixed #20248 - Clarified manage.py vs. django-admin.py
2013-04-12 06:10:26 -04:00
Claude Paroz
0f99246b6f
Documented BoundField.label_tag
2013-04-12 10:17:17 +02:00
Tim Graham
712a792713
Fixed #20243 - Clarified when RelatedManager.remove() exists.
2013-04-11 14:13:09 -04:00
Andrew Badr
408da7b457
remove confusing phrase from DecimalField docs
...
The phrase "if it exists" was used in reference to the `decimal_places`
argument to `DecimalField`, when in fact that field is required.
2013-04-11 16:27:14 +03:00
Andrew Brown
17be12df47
Removed a trailing space in the template name on line 174.
...
This trailing space may seem innocuous, but can be easily copied-and-pasted from the docs.
This can lead to bizarre File Not Found errors where the checked paths look correct, but actually aren't because
the trailing space is hard to see in an error message.
2013-04-05 01:52:12 -04:00
Baptiste Mispelon
2c27300f34
Fix #20195 : wrong reference in session settings documentation.
2013-04-04 18:12:12 +02:00
Tim Graham
b9dbd1dd2f
Fixed #19748 - Documented django.utils.module_loading.import_by_path
2013-04-02 12:59:43 -04:00
Claude Paroz
2bcbca3451
Updated some 'Dive Into Python' links
2013-04-01 14:04:41 +02:00
Tim Graham
ac4d82b94a
Fixed #9913 - Clarified User.is_authenticated docs.
...
Thanks rshea for the draft text.
2013-03-31 03:59:34 -04:00
Tim Graham
b5e1e2ec03
Fixed some markup in formtools docs.
2013-03-30 19:49:31 -04:00
Julien Phalip
ffc8e2e0ae
Fixes #20162 -- Added a note in the documentation for `static.serve()` about the need for updating the system's map files when incorrect content types are returned. Many thanks to Simon Charette and Claude Paroz for their feedback.
2013-03-30 16:23:27 -07:00
Tim Graham
33503600b5
Fixed #18277 - Clarified startproject documentation.
2013-03-30 08:36:31 -04:00
Tim Graham
6c730da1f6
Fixed #19897 - Updated static files howto.
...
Thanks Jan Murre, Reinout van Rees and Wim Feijen,
plus Remco Wendt for reviewing.
2013-03-29 19:15:19 -04:00
Baptiste Mispelon
391ec5a085
Fixed #20160 -- Erronous reference to `module_name` in admin doc.
...
Ref #19689 .
2013-03-29 14:31:29 -04:00
Tim Graham
738eef0f8b
Improved FormView docs in class-based views index.
...
Thanks Stefan Berder.
2013-03-29 07:57:07 -04:00
Tim Graham
95d504f414
Merge pull request #956 from maikhoepfel/master
...
Removed ambiguity regarding LANGUAGES setting
2013-03-29 04:44:58 -07:00
ferhat elmas
e5d252f5b9
Fixed #20146 -- Updated removed_tags example
2013-03-28 22:44:26 +01:00
Maik Hoepfel
a05042fd3a
Docs: Remove ambiguity.
...
The docs to the LANGUAGES setting were using both the term language code
and language name for the same thing.
2013-03-25 13:19:30 +01:00
Tim Graham
014638a131
Merge pull request #951 from yohanboniface/set_signed_cookie
...
Fixed signature of HttpResponse.set_signed_cookie in docs.
2013-03-24 10:55:11 -07:00
Tim Graham
6073091b77
Fixed #20124 - Fixed doc warnings.
2013-03-24 13:49:31 -04:00
Yohan Boniface
c5b2414a52
Doc: "value" is arg not kwarg in HttpResponse.set_signed_cookie
2013-03-24 12:12:23 -04:00
Aymeric Augustin
e16c48e001
Fixed #15124 -- Changed the default for BooleanField.
...
Thanks to the many contributors who updated and improved the patch over
the life of this ticket.
2013-03-24 13:47:01 +01:00
Jannis Leidel
e7514e4978
Merge pull request #942 from stephrdev/trac-18000
...
Fixed #18000 -- Moved the code to handle goto requests to an extra WizardView method.
2013-03-23 05:29:28 -07:00
Stephan Jaekel
1c8a1706fb
Updated docs, changed versionchanged to versionadded.
2013-03-23 13:27:16 +01:00
Stephan Jaekel
b614c47f8c
Added some class attributes to pass initial form lists to the WizardView without the need to add them in the as_view call.
2013-03-23 12:24:34 +01:00
Stephan Jaekel
46246c6624
Moved the code to handle goto requests in a extra WizardView method.
2013-03-23 12:02:23 +01:00
Tim Graham
93cffc3b37
Added missing markup to docs.
2013-03-22 13:50:07 -04:00
Tom V
a907fa088e
Docs template name mistake
...
change_list_request.html doesn't exist, it's named change_list_results.html
2013-03-21 10:03:28 +00:00
Andrew Gorcester
f9ab543720
Fixed #20084 -- Provided option to validate formset max_num on server.
...
This is provided as a new "validate_max" formset_factory option defaulting to
False, since the non-validating behavior of max_num is longstanding, and there
is certainly code relying on it. (In fact, even the Django admin relies on it
for the case where there are more existing inlines than the given max_num). It
may be that at some point we want to deprecate validate_max=False and
eventually remove the option, but this commit takes no steps in that direction.
This also fixes the DoS-prevention absolute_max enforcement so that it causes a
form validation error rather than an IndexError, and ensures that absolute_max
is always 1000 more than max_num, to prevent surprising changes in behavior
with max_num close to absolute_max.
Lastly, this commit fixes the previous inconsistency between a regular formset
and a model formset in the precedence of max_num and initial data. Previously
in a regular formset, if the provided initial data was longer than max_num, it
was truncated; in a model formset, all initial forms would be displayed
regardless of max_num. Now regular formsets are the same as model formsets; all
initial forms are displayed, even if more than max_num. (But if validate_max is
True, submitting these forms will result in a "too many forms" validation
error!) This combination of behaviors was chosen to keep the max_num validation
simple and consistent, and avoid silent data loss due to truncation of initial
data.
Thanks to Preston for discussion of the design choices.
2013-03-21 01:27:24 -07:00
Paul Collins
9a85ad89c2
Fixed #16319 -- added SuccessMessageMixin to contrib.messages
...
Thanks martinogden for the initial patch and d1ffuz0r for tests.
2013-03-19 21:02:55 -07:00