Claude Paroz
102f26c929
Fixed #20998 -- Allow custom (de)serialization for GIS widgets
...
Thanks Mathieu Leplatre for the report and the initial patch.
2013-09-02 13:32:00 +02:00
Ramiro Morales
e909ceae9b
Made django.test.testcases not depend on staticfiles contrib app.
...
Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase
unittest TestCase subclass.
Fixes #20739 .
2013-08-31 11:02:32 -03:00
Claude Paroz
e87997dd33
Fixed copy/paste error in measurement docs
2013-08-31 10:33:14 +02:00
Tim Graham
a89c856a7a
Fixed typo in docs/ref/models/options.txt
2013-08-30 21:05:36 -04:00
Anssi Kääriäinen
e973ee6a98
Fixed #20988 -- Added model meta option select_on_save
...
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649
2013-08-30 09:41:07 +03:00
Jorge C. Leitão
d72f83c410
Added links to file docs.
2013-08-29 12:48:59 -04:00
Curtis Maloney
5cdacbda03
Fixed #17356 -- Allowed {% include %} to render compiled templates
...
Reviewed by Loic Bistuer and Tim Graham.
2013-08-29 10:22:24 +03:00
Loic Bistuer
da800be6dd
Fixed #20986 -- Enabled SelectDateWidget to use custom months
...
Reviewed by Trac alias MarkusH.
2013-08-28 16:39:26 +03:00
Erik Romijn
fa57266699
Fixed #20972 -- Make messages cookie follow session cookie secure/httponly
2013-08-26 21:34:29 +02:00
Andrew Godwin
5569b0b92f
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/db/backends/oracle/base.py
django/db/backends/postgresql_psycopg2/base.py
django/db/models/signals.py
tests/queries/tests.py
2013-08-23 12:36:53 +01:00
Ramiro Morales
57c82f909b
Typos introduced in 297f5af222
.
2013-08-22 21:25:35 -03:00
Tim Graham
b0ce6fe656
Fixed #20922 -- Allowed customizing the serializer used by contrib.sessions
...
Added settings.SESSION_SERIALIZER which is the import path of a serializer
to use for sessions.
Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.
2013-08-22 13:58:26 -04:00
Anssi Kääriäinen
6af05e7a0f
Fixed model.__eq__ and __hash__ for no pk value cases
...
The __eq__ method now considers two instances without primary key value
equal only when they have same id(). The __hash__ method raises
TypeError for no primary key case.
Fixed #18864 , fixed #18250
Thanks to Tim Graham for docs review.
2013-08-22 17:24:07 +03:00
Marc Tamlyn
bac4d03ce6
Fixed #20944 -- Removed inaccurate statement about View.dispatch().
2013-08-22 09:20:50 -04:00
Ramiro Morales
297f5af222
Made description of LANGUAGE_CODE setting more clear.
2013-08-22 08:27:04 -03:00
Kevin Christopher Henry
7775ced938
Documentation - Noted that OneToOneField doesn't respect unique.
...
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
2013-08-21 22:32:04 +01:00
Kevin Christopher Henry
bb011cf809
Documentation -- Corrected error about Model.full_clean()
...
Although the ModelForm validation code was changed to call
Model.full_clean(), the documentation still said otherwise. The
offending phrase was removed.
2013-08-21 15:38:07 -04:00
Kevin Christopher Henry
83e434a2c2
Documentation - Noted that OneToOneField doesn't respect unique.
...
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
2013-08-20 21:20:29 -07:00
Andrew Godwin
b6a957f0ba
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
docs/ref/django-admin.txt
2013-08-19 18:30:48 +01:00
Tim Graham
7b69c3e775
Removed versionadded/changed annotations for 1.5
2013-08-19 09:09:41 -04:00
Anssi Kääriäinen
3844089edc
Fixed #20777 -- Admin proxy model deletion regression
...
Added proxy_models tests by Harm Geerts <github@geertswei.nl>.
2013-08-19 09:51:41 +03:00
Anssi Kääriäinen
4668c142dc
Made Model.__eq__ consider proxy models equivalent
...
Fixed #11892 , fixed #16458 , fixed #14492 .
2013-08-19 09:51:28 +03:00
Tim Graham
29255fcb4f
Fixed some ReST errors regarding backticks
2013-08-15 07:14:10 -04:00
Alasdair Nicol
354009d67e
Updated docs following deprecation of django.views.defaults.shortcut
...
Follows 3f2befc
2013-08-15 00:27:16 +01:00
Tim Graham
b6178fa24b
Added some doc links for django.contrib.messages
2013-08-14 12:57:55 -04:00
Jonathan Slenders
ff410565bf
Fixed #20709 -- Allowed {% widthratio %} to accept an "as" parameter.
...
Thanks clay.evil@ for the suggestion.
2013-08-14 12:40:19 -04:00
SusanTan
71c491972e
Fixed #11400 -- Passed kwargs from AbstractUser.email_user() to send_mail()
...
Thanks Jug_ for suggestion, john_scott for the initial patch,
and Tim Graham for code review.
2013-08-14 07:46:11 -04:00
Matt Johnson
907ef9d0d1
Fixed #20555 -- Make subwidget id attribute available
...
In `BoundField.__iter__`, the widget's id attribute is now passed to
each subwidget. A new id_for_label property was added to ChoiceInput.
2013-08-13 13:23:05 -04:00
Mel Collins
6bdb3b1135
Fixed #13518 -- Added FILE_UPLOAD_DIRECTORY_PERMISSIONS setting
...
This setting does for new directories what FILE_UPLOAD_PERMISSIONS
does for new files.
Thanks jacob@ for the suggestion.
2013-08-12 07:15:59 -04:00
Andrew Godwin
7970d97a70
Docs tweaks (thanks timgraham)
2013-08-10 20:00:12 +01:00
Andrew Godwin
588b523233
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/db/models/options.py
2013-08-09 14:37:37 +01:00
Tim Graham
ddae74b64c
Fixed #9057 -- Added default_permissions model meta option.
...
Thanks hvendelbo for the suggestion and koenb for the draft patch.
2013-08-09 09:19:52 -04:00
Andrew Godwin
de64c4d6e9
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/core/management/commands/flush.py
django/core/management/commands/syncdb.py
django/db/models/loading.py
docs/internals/deprecation.txt
docs/ref/django-admin.txt
docs/releases/1.7.txt
2013-08-09 14:17:30 +01:00
Loic Bistuer
f8a6a4eba1
Improved queryset handling and docs for (Single|Multiple)ObjectMixin.
2013-08-09 17:51:58 +07:00
Tim Graham
8442268869
Added an anchor for django.forms.Form.clean in docs
2013-08-08 14:13:52 -04:00
Tim Graham
58e4fe464c
Merge pull request #1457 from jaimeirurzun/master
...
Clarified meaning of models.User.is_authenticated()
2013-08-08 07:27:08 -07:00
Daniele Procida
7e6af9d40c
Added more on @cached_property, refs #20870
2013-08-08 09:45:26 -04:00
Marc Tamlyn
fb1dd6b13a
Form.clean() does not need to return cleaned_data.
...
If it does, that will be used as the cleaned_data. The default
implementation has been changed to match this change.
2013-08-08 14:05:55 +01:00
Jaime Irurzun
f96fe3cd1e
Clarify meaning of models.User.is_authenticated()
2013-08-08 12:45:06 +01:00
Daniele Procida
7a2296eb5b
Fixed #20870 -- Documented django.utils.functional.cached_property
2013-08-08 05:36:17 -04:00
Preston Holmes
cf041b883c
Merge pull request #1453 from chrismedrela/ticket20484-improvement
...
Fixed #20484 again -- added note to field documentation
2013-08-07 14:10:24 -07:00
Christopher Medrela
fb26c4996a
Fixed #20484 again -- added note to field documentation
2013-08-07 20:57:56 +02:00
Tai Lee
1280675834
Fixed #15511 -- Allow optional fields on ``MultiValueField` subclasses.
...
The `MultiValueField` class gets a new ``require_all_fields`` argument that
defaults to ``True``. If set to ``False``, individual fields can be made
optional, and a new ``incomplete`` validation error will be raised if any
required fields have empty values.
The ``incomplete`` error message can be defined on a `MultiValueField`
subclass or on each individual field. Skip duplicate errors.
2013-08-06 08:50:47 -04:00
Dominic Rodger
c33d1ca1d9
Fixed #20852 - Fixed incorrectly generated left quotes in docs.
...
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.
Instances of the problem were found by looking for
">‘" in the generated HTML.
2013-08-06 07:13:17 -04:00
Jimmy Song
94d7fed775
Fixed #20859 - Clarified Model.clean() example.
2013-08-05 09:06:09 -04:00
Julien Phalip
0b071ba7df
Fixed a small formatting issue.
2013-08-04 17:29:55 -07:00
Tim Graham
1593a86494
Fixed #20860 -- Removed references to defunct chicagocrime.org
2013-08-04 14:46:06 -04:00
Daniele Procida
e8183a8193
Fixed #20842 and #20845 - Added a note on order_by() and improved prefetch_related() docs.
2013-08-04 12:34:28 -04:00
Loic Bistuer
ebb3e50243
Introduced ModelAdmin.get_fields() and refactored get_fieldsets() to use it.
...
Refs #18681 .
This also starts the deprecation of ModelAdmin.declared_fieldsets
2013-08-04 09:14:18 -04:00
Curtis Maloney
07876cf02b
Deprecated SortedDict (replaced with collections.OrderedDict)
...
Thanks Loic Bistuer for the review.
2013-08-04 07:09:39 -04:00
Loic Bistuer
0bcdcc7eb9
Added ModelAdmin.get_search_fields.
2013-08-03 20:02:43 -04:00
Dominic Rodger
920b242e30
Fixed #20786 -- Cleaned up docs/ref/exceptions.txt
...
Thanks Daniele Procida for the suggestion and edits.
2013-08-02 09:42:46 -04:00
Tim Graham
5df84b268d
Removed unused model option "admin"
2013-08-01 10:27:30 -04:00
Alex Couper
1123f45511
Fixed #20649 -- Allowed blank field display to be defined in the initial list of choices.
2013-07-31 14:12:03 -04:00
Loic Bistuer
acd1d439fd
Fixed #20826 -- Moved Manager.raw() and Manager._insert() to the QuerySet class.
2013-07-31 09:54:00 -04:00
Julian Bez
8f5533ab25
Fixed #20793 -- Added Last-Modified header to sitemaps.
2013-07-31 07:42:30 -04:00
Tim Graham
4d8ecbdfda
Fixed some ReST errors; refs #20819 .
2013-07-31 07:22:38 -04:00
SusanTan
7de35a9ef3
Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498 .
...
Thanks CollinAnderson for the report.
2013-07-31 07:09:12 -04:00
Tai Lee
4c6ffcf721
Fixed #20819 -- Return 404 instead of 500 error when ``staticfiles`` view is used in production.
2013-07-31 18:58:50 +10:00
Jose L. Patino
7b57e575c9
Fixed #19877 -- Added `--no-color` option to `BaseCommand` to avoid using output styles.
2013-07-30 09:26:18 -04:00
Andrew Godwin
68e0a169c4
Rename pre_ and post_syncdb to *_migrate, with aliases from old names
2013-07-30 11:52:52 +01:00
Tim Graham
05ea5a2139
Fixed #20823 -- Typo in docs/ref/forms/validation.txt
2013-07-29 18:41:08 -04:00
minusf
70c080fcdb
Misc doc cleanups.
2013-07-29 06:57:33 -04:00
Julien Phalip
47c755327b
Fixed a number of minor misspellings.
2013-07-27 18:46:03 -07:00
Tim Graham
8676318d2d
Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.
...
Thanks CollinAnderson for the report.
2013-07-26 14:45:38 -04:00
Loic Bistuer
31fadc1202
Fixed #20625 -- Chainable Manager/QuerySet methods.
...
Additionally this patch solves the orthogonal problem that specialized
`QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet`
type. This wasn't an issue until now because we didn't officially support
custom `QuerySet` but it became necessary with the introduction of this new
feature.
Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham
for the reviews.
2013-07-26 12:41:27 +03:00
Aymeric Augustin
5ed7ec99b6
Added versionadded directive missing from b7bd708
.
2013-07-25 20:14:51 +02:00
Andrew Godwin
f8297f6323
More migration docs, and conversion of all easy syncdb references
2013-07-25 16:19:36 +01:00
mark hellewell
8c9240222f
Fixed #18315 -- Documented QueryDict.popitem and QueryDict.pop
...
Thanks gcbirzan for the report.
2013-07-25 11:06:41 -04:00
Andrew Godwin
06103c8ef5
Small start to migrations documentation
2013-07-25 14:45:38 +01:00
Brenton Cleeland
dab52d99fc
Fixed #20792 -- Corrected DISALLOWED_USER_AGENTS docs.
...
Thanks simonb for the report.
2013-07-25 07:38:14 -04:00
Preston Holmes
10f8a21002
Fixed #18168 -- clarified precedence of validation
...
any choices set by formfield_for_choice_field are still subject
to model validation of the model field's choices attribute
2013-07-24 14:58:14 -07:00
Tim Graham
bd0dcc6c89
Fixed #20766 -- Deprecated FastCGI support.
2013-07-24 13:41:45 -04:00
Matt Deacalion Stevens
a269ea4fe0
Fixed #14656 -- Added Atom1Feed `published` element
...
Some feed aggregators make use of the `published` element as well as
the `updated` element (within the Atom standard -- http://bit.ly/2YySb ).
The standard allows for these two elements to be present in the same
entry. `Atom1Feed` had implemented the `updated` element which was
incorrectly taking the date from `pubdate`.
2013-07-19 10:38:34 -04:00
Matt Deacalion Stevens
fa217d14a0
Updated the `databases` documentation
...
+ Removed a reference about MySQL storage engines also being
called 'table types', as this term has been deprecated for
8 years and is no longer used.
+ Fixed the link to the official InnoDB storage engine docs.
+ Apache (versions >= 2.4) will always choose a multi-threaded
MPM module on modern operating systems (later than 2002).
2013-07-19 09:01:13 +01:00
Matt Deacalion Stevens
beefc97171
Atom specification URL updated
...
Changed to the URL of the official RFC for Atom, since Atomenabled.org
is just a holding page.
2013-07-18 12:53:54 +01:00
Alasdair Nicol
1131d4191f
Fixed typo in inspectdb docs
2013-07-18 11:37:01 +01:00
Curtis Maloney
a3e7d73ed7
Allowed Context.push to behave as a context mananger.
...
Thanks Loic Bistuer for the review.
2013-07-17 13:32:32 -04:00
Tim Graham
2333c9662b
Fixed #14007 -- Added model discovery in models module without the need to specify app_label.
...
Thanks mark@ and Aramgutang for work on the patch.
2013-07-16 19:32:30 -04:00
Tim Graham
862a04a56d
Fixed some markup in docs/ref/templates/api.txt
2013-07-15 11:31:06 -04:00
Claude Paroz
1b142ef5dd
Removed Python 2.6 references in GIS docs
...
Refs #20746 .
2013-07-13 23:08:48 +02:00
Claude Paroz
7557207983
Fixed #20582 -- Allowed default Form.label_suffix to be translated
...
Thanks Tim Graham for the review.
2013-07-13 16:19:16 +02:00
Tim Graham
a7d97a6778
Fixed #20653 -- Renamed checksetup -> check missed in [ 03465639
]
...
Thanks CollinAnderson for the report.
2013-07-12 12:48:49 -04:00
Karol Sikora
6272d2f155
Fixed #20429 -- Added QuerySet.update_or_create
...
Thanks tunixman for the suggestion and Loic Bistuer for the review.
2013-07-12 08:26:35 -04:00
Joeri Bekker
66f3d57b79
Fixed #19031 -- Added a warning when using override_settings with 'DATABASES'
2013-07-12 07:10:18 -04:00
Tim Graham
3cdeb572d7
Fixed #17528 -- Documented that add() and remove() with a many-to-many relationship do not call Model.save()
2013-07-12 06:19:16 -04:00
Christopher Medrela
ac223ff6d1
Fixed #20735 -- clarified ManyToManyField constructor doc
2013-07-12 11:50:08 +02:00
Claude Paroz
59ebe39812
Fixed #17471 -- Added smtplib.SMTP_SSL connection option for SMTP backend
...
Thanks dj.facebook at gmail.com for the report and initial patch
and Areski Belaid and senko for improvements.
2013-07-11 22:00:08 +02:00
Tim Graham
ecd746191c
Fixed #20733 -- Typo in docs/ref/class-based-views/generic-display.txt
...
Thanks ijl20@ for the report.
2013-07-11 07:36:25 -04:00
James Bennett
c0f03175ce
Fixed #19695 -- Retitle "Form Media" to "Form Assets".
2013-07-08 13:59:54 -04:00
Tim Graham
181f63c22d
Fixed #12346 -- Added a note on how to validate InlineFormSets.
...
Thanks johnsmith for the suggestion.
2013-07-08 08:29:28 -04:00
Claude Paroz
c94093c5ba
[gis] Dropped official support for GDAL < 1.6
2013-07-06 17:25:46 +02:00
Claude Paroz
de676f94b7
Added release dates for gis libs as doc comments
2013-07-06 17:18:53 +02:00
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
577b0f9189
Fixed #20561 -- Emphasized that QuerySet.distinct([*fields]) is only supported by Postgres.
...
Thanks jtiai for the suggestion.
2013-07-05 07:20:37 -04:00
Tim Graham
f407f75aae
Fixed #20673 -- Clarified that HttpRequest.user uses AUTH_USER_MODEL.
...
Thanks littlepig for the report.
2013-07-04 09:32:32 -04:00
Tim Graham
428de2e339
Fixed #12579 -- Noted QuerySet.get_or_create() depends on database unique constraints.
...
Thanks timmolendijk, jdunck, vijay_shanker, and loic84.
2013-07-04 07:53:13 -04:00
Tim Graham
8a679386c3
Fixed #20691 -- Added a note for __str__() vs. __unicode__() and Python 3.
...
Thanks garrison for the suggestion.
2013-07-03 08:44:03 -04:00
Tim Graham
3632d289de
A couple more semicolon -> colon fixes; refs #18134 .
2013-07-02 14:14:56 -04:00
Aymeric Augustin
6a0374d037
Reflected the new default value of LOGGING_CONFIG in docs.
2013-07-01 23:16:25 +02:00
Tim Graham
3fd0ee5b46
Fixed #20677 - Typos in generic_inlineformset_factory docs.
...
Thanks Riley Strong for the report.
2013-06-29 14:14:32 -04:00
Aymeric Augustin
7415176507
Simplified description of HttpResponse(<iterator>)
...
Related to 8b9b8d3b
.
2013-06-29 18:56:00 +02:00
Claude Paroz
6118d6d1c9
More import removals
...
Following the series of commits removing deprecated features in
Django 1.7, here are some more unneeded imports removed and other
minor cleanups.
2013-06-29 11:58:36 +02:00
Ramiro Morales
24bbf1367a
Removed django.utils.encoding.StrAndUnicode class, deprecated in Django 1.5.
2013-06-28 23:16:28 -03:00
Ramiro Morales
7379d9acea
Removed insert(), value_for_insert() SortedDict methods deprecated in Django 1.5.
2013-06-28 22:38:13 -03:00
Ramiro Morales
8eadbc5a03
Removed 'mimetype' arguments from a few places, as per deprecation TL.
...
This includes HttpResponse and co. __init__() methods,
django.shortcuts.render_to_response() and the index(), sitemap() sitemap
app views.
2013-06-28 21:48:16 -03:00
Ramiro Morales
6ba69c8456
Removed 'depth' .select_related() argument as per deprecation TL.
2013-06-28 21:48:16 -03:00
Ramiro Morales
c196564132
Removed custom profile model functionality as per deprecation TL.
2013-06-28 21:48:16 -03:00
Ramiro Morales
f73d04dda9
Removed 'cleanup' management command 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
Ken Bolton
6fcb7ba842
Fix typo
2013-06-27 12:39:50 -04:00
Andrew Godwin
12cb0df10f
Docs for related_query_name
2013-06-27 15:44:22 +01:00
Claude Paroz
8db264cbc8
Fixed LOGGING setting docs
2013-06-27 16:29:26 +02:00
Baptiste Mispelon
5005303ae7
Fixed #20665 -- Missing backslash in sitemaps documentation
...
Thanks to roman for the report.
2013-06-27 09:42:09 +02: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
Tim Graham
e10757ff4d
Doc cleanup for FormMixin.prefix; refs #18872 .
2013-06-25 07:50:43 -04:00
Daniel Izquierdo
9a2b07f1b4
Fixed #20654 -- Fixed type of `m2m_changed`'s `pk_set` arg in docs
2013-06-25 09:46:17 +02:00
Baptiste Mispelon
299983616f
Fixed #20644 -- Add ModelFormMixin.fields to the CBV flattened index
...
Thanks to Tim Graham for the report and review.
2013-06-24 11:59:08 +02:00
Simon Charette
ecf63d5d89
Added missing `versionadded` for `FormMixin.prefix`.
2013-06-22 16:49:24 -04:00
Gilberto Gonçalves
ef37b23050
Fixed #18872 -- Added prefix to FormMixin
...
Thanks @ibustama for the initial patch and dragonsnaker for opening the
report.
2013-06-22 12:12:43 +01:00
Tim Graham
9be93aa809
Fixed #20634 - Corrected doc mistake re: staticfiles finders strategy.
...
Thanks claudep for the catch and bmispelon for the research.
2013-06-21 14:57:12 -04:00
James Bennett
ba610cb319
Fixed #19881 -- Documented that get_next/previous_by_FOO uses default manager.
2013-06-21 13:14:05 -04:00
Loic Bistuer
c86a9b6398
Fixed #6903 - Preserve admin changelist filters after saving or deleting an object
2013-06-19 02:41:36 +07:00
Erik Romijn
2c4fe761a0
Fixed #20593 -- Allow blank passwords in check_password() and set_password()
2013-06-18 13:32:54 -04:00
Loic Bistuer
ee77d4b253
Fixed #20199 -- Allow ModelForm fields to override error_messages from model fields
2013-06-18 08:01:17 -04:00
Baptiste Darthenay
39b245fd76
Fixed #20614 -- Typo in documentation.
2013-06-17 11:35:07 +02:00
Daniel Lindsley
b3532f7df9
Adjusted the docs to reflect when the checksetup command was added.
2013-06-15 10:14:48 -07:00
Claude Paroz
bf9975b0eb
Fixed #20606 -- Fixed 'for' example in template tag docs
...
Thanks batisteo for the report.
2013-06-15 12:02:25 +02:00
Daniel Lindsley
2a6a32047d
Added missing docs for the checksetup command.
2013-06-14 16:02:45 -07:00
Marc Tamlyn
f656757888
Merge pull request #1271 from batisteo/ticket-20565
...
Fixed #20565 -- Added template examples for GCBV.
2013-06-14 07:40:00 -07:00
Baptiste Darthenay
81545940c6
Fixed #20565 -- Added template examples for GCBV.
...
Thanks to David Reitter for the report,
and to Marc Tamlyn and Baptiste Mispelon for the review.
2013-06-14 16:31:11 +02:00
Marc Tamlyn
b7bd7087e6
Fixed #15273 -- Extend RedirectView to allow reversal by name.
...
Thanks to @DrMeers for the report and @ludwigkraatz for the initial patch.
2013-06-14 11:59:26 +01:00
Tim Graham
70d7e45eb0
Added release notes for auth views being reversed by name, not by path.
...
Refs #20532
2013-06-13 16:08:56 -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
Jaap Roes
3ce1d303da
Warned that `request_finished` isn't sent by some buggy setups.
...
Older versions of uWSGI and Sentry's middleware do not adhere to
the WSGI spec and cause the `request_finished` signal to never
fire. Added notes to the appropriate places in the docs.
Fixed #20537 .
2013-06-12 20:52:08 +02:00
Baptiste Darthenay
8821bcb2a0
Fixed #20591 : added version in docs for utils.module_loading.import_by_path.
2013-06-12 10:50:37 +02:00
Tim Graham
536703abf0
Fixed #20500 - Updated flatpages URLconf example to work with APPEND_SLASH.
...
Thanks josh.23.french@.
2013-06-11 12:25:39 -04: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
Tim Graham
a643e4d200
Merge pull request #1255 from camilonova/patch-2
...
Made URL patterns consistent in docs/ref/contrib/flatpages.txt
2013-06-10 06:47:15 -07:00
Tim Graham
4e94c84e50
Fixed #19875 - Added warnings regarding DEBUG=False and empty ALLOWED_HOSTS
2013-06-09 15:05:15 -04:00
Tim Graham
175a102ddc
Fixed #20567 - Documented BoundField.id_for_label.
...
Thanks littlepig for the suggestion.
2013-06-09 12:13:43 -04:00
Camilo Nova
706eced9bb
Update flatpages.txt
...
Fixed typo
2013-06-08 10:45:39 -05: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
Marc Tamlyn
9ed971f4f1
Merge pull request #1245 from oinopion/list_select_related
...
Fixed #19080 -- Fine-grained control over select_related in admin
2013-06-06 01:27:05 -07:00
Tomek Paczkowski
0fd9f7c95f
Fixed #19080 -- Fine-grained control over select_related in admin
2013-06-05 23:08:00 +02:00
Tim Graham
bb863faecd
Proofed the 1.6 release notes
2013-06-05 12:55:58 -04:00
James Aylett
5448555785
Fixed #17601 -- expose underlying db exceptions under py2
...
Use __cause__ to expose the underlying database exceptions even
under python 2.
2013-06-04 12:46:10 +01:00
Tim Graham
c36b75c814
Fixed #20545 - Made class-based view MRO lists consistent.
...
Thanks wim@ for the suggestion.
2013-06-03 10:06:48 -04:00
Tim Graham
61524b09cf
Fixed #18388 - Added InlineModelAdmin.get_max_num hook.
...
Thanks d.willy.c.c@ for the suggestion and Melevir and Areski Belaid for work
on the patch.
2013-06-01 18:20:54 -04:00
Tim Graham
646a2216e9
Fixed #20326 - Corrected form wizard get_form() example.
...
Thanks tris@ for the report.
2013-05-31 08:07:40 -04:00
Claude Paroz
7882c3a673
Fixed #20511 -- Corrected link about isolation levels in databases docs
...
Thanks tinodb for the report.
2013-05-31 10:17:34 +02:00
Ramiro Morales
ac90aee55c
Tweak caching decorators/utility functions xrefs.
2013-05-30 20:38:44 -03:00
Tim Graham
36aecb12b8
Fixed #19425 - Added InlineModelAdmin.get_extra hook.
...
Thanks dave@ for the suggestion and Rohan Jain for the patch.
2013-05-30 13:48:10 -04:00
Tim Graham
5074c75a37
Fixed #16856 - Added a way to clear select_related.
...
Thanks Carl for the suggestion and David Cramer for the patch.
2013-05-30 11:06:05 -04:00
Gavin Wahl
e6ff238431
Fixed regroup example.
...
Chicago was missing.
2013-05-29 21:46:58 -04:00
Tim Graham
8a6e040bfa
Fixed #20525 -- Added versionadded for clearsessions.
...
Thanks wiml@.
2013-05-28 20:14:01 -04:00
Tim Graham
d321d1acf0
Fixed #20228 - Documented unique_for_date and exclude behavior.
...
Thanks Deepak Thukral for the patch.
2013-05-28 10:04:07 -04:00
Tim Graham
90af278203
Fixed #16137 - Removed kwargs requirement for QuerySet.get_or_create
...
Thanks wilfred@, poirier, and charettes for work
on the patch.
2013-05-27 10:01:14 -04:00
Baptiste Mispelon
08726cb013
Fix #20505 : Typo in BinaryField documentation.
2013-05-27 11:35:34 +02: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
fbab3209fc
Fixed #20492 - Removed a broken link in GIS docs.
2013-05-24 12:35:20 -04:00
Tim Graham
92c9052add
Merge pull request #1210 from alasdairnicol/jquery_cookie_plugin_link
...
Updated link to jQuery Cookie plugin site
2013-05-24 09:25:27 -07:00
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