James Bennett
46249061d6
Merge pull request #333 from brad/ticket_18917
...
clarify clean_<field> docs, ticket #18917
2012-09-07 12:00:01 -07:00
Alex Gaynor
6a5a12ea3e
Fixed #17888 -- no longer silence exceptions inside of check_test. Thanks to brutasse for the patch.
2012-09-07 14:37:21 -04:00
Justin Bronn
72b8f8d73b
Updated the GEOS, PostGIS, and PROJ.4 versions in the GeoDjango installation docs.
2012-09-07 13:35:09 -04:00
Dan Loewenherz
09e3d364b9
specify any orderable field can be specified in get_latest_by, closes #18875
2012-09-07 11:34:18 -04:00
Brad Pitcher
c634375e9c
clarify clean_<field> docs, ticket #18917
2012-09-07 10:43:55 -04:00
Tim Graham
e5983af7c1
Fixed #18904 - Typo in MySQL link; thanks Johie Anderson for the report.
2012-09-05 17:50:17 -04:00
Tim Graham
51ee850776
Fixed #9967 - Added a link to a bug that affects contrib.comments redirects.
2012-09-04 16:27:58 -04:00
Tim Graham
74c025d028
Fixed #13608 - Noted that template lookups use literal values.
2012-09-01 09:24:39 -04:00
Tim Graham
5faadea439
Fixed #17378 - Added a flattened index for class-based views.
...
Thanks Preston Holmes for the patch.
2012-09-01 09:20:38 -04:00
Tim Graham
e376558ed2
Fixed #16936 - Updated javascript for CSRF protection.
...
Thanks Idan Gazit for the patch.
2012-09-01 06:03:01 -04:00
Tim Graham
f99ecaff06
Fixed #18642 - Added a note suggesting the use of render() rather than render_to_response() if you need RequestContext in your template.
2012-08-31 20:24:33 -04:00
Tim Graham
70896386ec
Fixed #16309 - Made ModelAdmin.list_filter versionchanged annotations more specific to the sections that changed; thanks akaihola for the suggestion and patch.
2012-08-31 18:01:02 -04:00
Tim Graham
7235cc7685
Fixed #14556 - Documented how to use flatpages in URLconf; thanks Claude Paroz for the draft patch.
2012-08-31 08:14:45 -04:00
Alex Gaynor
17d57275f9
Fixed #18883 -- added a missing self parameter in the docs
2012-08-30 19:19:11 -07:00
Tim Graham
f698b973ea
Fixed #18384 - Reformatted GeoDjango install instructions slightly.
2012-08-30 16:16:28 -04:00
Claude Paroz
361d6738f8
Fixed #11739 -- Made ContentFile support Unicode input
2012-08-29 11:21:33 +02:00
Claude Paroz
ebc773ada3
Replaced many smart_bytes by force_bytes
...
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
2012-08-29 11:20:32 +02:00
Ramiro Morales
c73f2bd65c
Fixed typo in model fields reference docs.
2012-08-26 00:24:32 -03:00
Claude Paroz
62e1c5a441
Fixed #17448 -- Improved test and documented raw-sql gis query
2012-08-25 14:39:52 +02:00
Tim Graham
e6e01f619d
Updated doc for settings.MEDIA_ROOT based on what's generated by settings.py; thanks ryan-blunden.
2012-08-25 08:25:34 -04:00
Ramiro Morales
6786b38ace
Modified docs about SpatiaLite version that doesn't need manual initial SQL file loading as per 675431dfaa
.
2012-08-23 21:18:29 -03:00
Claude Paroz
44c09de555
Fixed #18678 -- HttpResponse init arguments allowed for subclasses
...
Thanks hp1337@gmail.com for the report.
2012-08-23 10:59:22 +02:00
Claude Paroz
7cfe8e8fce
Fixed #11340 -- Prevented HttpResponseNotModified to have content/content-type
...
The HTTP 1.1 spec tells that the 304 response MUST NOT contain a
message body.
Thanks aparajita for the report.
2012-08-22 20:55:24 +02:00
Tim Graham
13d47c3f33
Fixed #18637 - Updated some documentation for aspects of models that are ModelForm specific, not admin specific.
...
Thanks Ben Sturmfels for the patch.
2012-08-21 17:38:16 -04:00
Ramiro Morales
26e0ba07ae
Tweaked SpatiaLite GeoDjango docs.
2012-08-19 22:03:50 -03:00
Tim Graham
3631db88cb
Fixed typo in form wizard docs.
2012-08-19 20:13:09 -04:00
Julien Phalip
cccbb6bff3
Made some minor fixes to the GeoDjango installation guide.
2012-08-19 00:57:48 -07:00
Marc Tamlyn
8d5c11caad
Fixed #3542 -- Add support for changing granularity on ArchiveView.
...
Resolving the concept from a very old ticket in a more class-based-view
manner.
2012-08-18 17:03:57 +01:00
Aymeric Augustin
a120fac65a
Introduced force_bytes and force_str.
...
This is consistent with the smart_* series of functions and it's going
to be used by the next commit.
2012-08-18 16:38:49 +02:00
Marc Tamlyn
212b9826bd
Fixed #14516 -- Extract methods from removetags and slugify template filters
...
Patch by @jphalip updated to apply, documentation and release notes
added.
I've documented strip_tags as well as remove_tags as the difference
between the two wouldn't be immediately obvious.
2012-08-18 15:07:21 +01:00
Marc Tamlyn
58683e9c82
Fixed #16744 -- Class based view should have the view object in the context
...
Updated the most recent patch from @claudep to apply again and updated
the documentation location.
2012-08-18 15:07:21 +01:00
Aymeric Augustin
547b181046
[py3] Ported django.utils.safestring.
...
Backwards compatibility aliases were created under Python 2.
2012-08-18 16:04:06 +02:00
Tim Graham
6086f7356d
Merge pull request #271 from morty/patch-1
...
Fixed doc comment in django.contrib.admin example to match the code
2012-08-17 08:20:43 -07:00
Tim Graham
2a36a1a071
Fixed #18696 - Clarified WizardView heading; thanks sergzach.
2012-08-17 11:06:38 -04:00
Tim Graham
4eaf73d7bc
Merge pull request #261 from issackelly/cbv-full-list
...
Create headings and expand CBV docs so that the "Built-In CBV" docs include a full list.
2012-08-17 07:57:39 -07:00
Tim Graham
2079b730f1
Fixed #18223 - Corrected default transaction behavior in postgresql docs.
...
Thanks philipn for the report and mateusgondim for the patch.
2012-08-16 18:15:19 -04:00
Simon Meers
d1d514af04
Marked up a few raw values in the settings documentation.
2012-08-16 10:13:28 +10:00
Piet Delport
e38112d882
Fixed #18759 -- updated SECRET_KEY documentation
...
Document SECRET_KEY becoming required in 1.5.
Also expand the description slightly, and add a more prominent warning
about the security implications of running with an exposed SECRET_KEY.
2012-08-16 09:47:55 +10:00
Tom Mortimer-Jones
383da13785
Fixed comment to match the code
2012-08-15 19:41:16 +02:00
Andrei Antoukh
99321e30ce
Fixed #18306 -- Made deferred models issue update_fields on save
...
Deferred models now automatically update only the fields which are
loaded from the db (with .only() or .defer()). In addition, any field
set manually after the load is updated on save.
2012-08-12 22:39:27 +03:00
Aymeric Augustin
a0a0203a39
[py3] Added python_2_unicode_compatible decorator.
2012-08-12 14:44:40 +02:00
Issac Kelly
060ac8e711
Create headings and expand CBV docs so that the "Built-In CBV" docs include a complete list.
2012-08-10 23:07:15 -07:00
Tim Graham
7275576235
Clarified thread safety note in class based views; thanks rafadura for the patch.
2012-08-09 18:22:30 -04:00
James Bennett
7731cc8689
Fix #18062 : Document best practices for choices in model fields.
2012-08-08 12:49:28 -04:00
Aymeric Augustin
c5ef65bcf3
[py3] Ported django.utils.encoding.
...
* Renamed smart_unicode to smart_text (but kept the old name under
Python 2 for backwards compatibility).
* Renamed smart_str to smart_bytes.
* Re-introduced smart_str as an alias for smart_text under Python 3
and smart_bytes under Python 2 (which is backwards compatible).
Thus smart_str always returns a str objects.
* Used the new smart_str in a few places where both Python 2 and 3
want a str.
2012-08-07 12:00:22 +02:00
Aymeric Augustin
9a3026a920
Fixed a rst error introduced in f2abfe1e
.
2012-08-05 22:53:09 +02:00
Tim Graham
a04f68b15d
Merge pull request #233 from rafikdraoui/modeladmin-doc
...
Updated example of customized ModelAdmin in documentation for 1.4
2012-08-05 10:21:14 -07:00
Julien Phalip
9ea4dc90b9
Small improvement to the `contrib.messages` doc introduction.
2012-08-04 15:46:15 -07:00
Florian Apolloner
62ae711cec
Added a missing space to the description of the `cut` filter.
2012-08-04 23:58:31 +02:00
Alex Gaynor
5f9b2be559
Merge pull request #210 from pydanny/ticket_18632
...
Ticket 18632 Cleanup of CBV edit/edit mixin documentation.
2012-08-04 13:16:24 -07:00
Daniel Greenfeld
1fefd91e1e
For #210 , cleaned up text and formatting.
2012-08-04 13:01:40 -07:00
Claude Paroz
542c20b382
Fixed #18713 -- Fixed custom comment app name in comments docs
...
Thanks Pratyush for the report.
2012-08-04 17:38:18 +02:00
Claude Paroz
121fd109de
Fixed #5524 -- Do not remove cleaned_data when a form fails validation
...
cleaned_data is no longer deleted when form validation fails but only
contains the data that did validate.
Thanks to the various contributors to this patch (see ticket).
2012-08-04 14:22:23 +02:00
Tim Graham
b496be331c
Fixed #15932 - Documented how to supress multiple reverse relations to the same model.
...
Thanks Claude Paroz for the patch.
2012-08-03 16:27:45 -04:00
Aymeric Augustin
d01eaf7104
[py3] Removed uses of sys.maxint under Python 3.
...
Also fixed #18706 : improved exceptions raised by int_to_base36.
2012-08-03 18:51:28 +02:00
Tim Graham
083a3a4e39
Fixed #13904 - Documented how to avoid garbage collection messages in GIS.
...
Thanks Claude Peroz for the patch.
2012-08-03 05:17:52 -04:00
Tim Graham
07e10fbe9f
Fixed #16941 - Clarified naturaltime output when the time is more than a day old.
...
Thanks antoviaque for the patch.
2012-08-02 07:54:07 -04:00
Tim Graham
39541be3bc
Fixed #18581 - Updated admin actions screenshots. Thanks Kevin London.
2012-08-02 07:52:16 -04:00
Tim Graham
07d70e9b26
Fixed #18656 -- Fixed LocaleMiddleware link; thanks mitar for the report.
2012-07-28 13:31:41 -04:00
Rafik Draoui
04e8ef5a83
Updated example of customized ModelAdmin in documentation for 1.4
...
The change_view method of django.contrib.admin.ModelAdmin takes an
extra `form_url` argument in Django 1.4.
2012-07-25 21:33:38 +01:00
Florian Apolloner
51a010135c
Merge pull request #220 from dirn/staticfiles-docs-typo
...
Fix typo in staticfiles app documentation
2012-07-25 13:20:44 -07:00
Alex Gaynor
5ee8c3ef0c
Merge pull request #230 from pjdelport/cleanup
...
Cleanup
2012-07-25 13:07:10 -07:00
Alex Gaynor
c4be14bd32
Merge pull request #232 from yohanboniface/ticket18667
...
Ticket 18667: fix typo in CBV doc
2012-07-25 12:56:08 -07:00
James Bennett
9d246e0f9f
Merge pull request #231 from kevin1024/master
...
Documentation fix - Change the word "brackets" to "parentheses"
2012-07-25 12:54:09 -07:00
Aymeric Augustin
69f4856f23
Fixed a typo in the admin reference docs.
...
Thanks Yohan Boniface for the report.
2012-07-25 10:57:30 +02:00
Yohan Boniface
206c248f1e
Ticket 18667: fix typo in CBV doc
2012-07-25 10:44:43 +02:00
Kevin McCarthy
c3a05d8794
Changed the word "brackets" to "parentheses"
...
I want to change the word "brackets" to "parentheses" because when I think
of brackets, I think of [], and when I think of parentheses, I think of (),
and when I originally read this, I found the word confusing.
2012-07-24 16:55:08 -10:00
Ramiro Morales
50837434db
Clarified default name of M2M relationship DB table.
2012-07-24 22:44:28 -03:00
Piet Delport
f1128e5474
Fix typo.
2012-07-25 01:21:16 +02:00
Andy Dirnberger
a7928dedc8
Fix typo in staticfiles app documentation
...
In the documentation for the `static` template tag, a `::` was used prior to a `code-block`. Doing so caused the `code-block` line to render as code. Changing the `::` to `:` corrects the display.
2012-07-18 14:34:08 -04:00
Alex Gaynor
110c729309
Merge pull request #215 from mgrouchy/add-interpreter-options
...
Adds interpreter option to shell command as per ticket #18639
2012-07-17 11:04:59 -07:00
Mike Grouchy
f2abfe1e48
Adds interpreter option to shell command as per ticket #18639
...
Specify python interpreter interface ipython or bpython with the -i,
--interface options
argument.
ex// python manage.py shell -i bpython
ex// python manage.py shell --interface bpython
Like all other options, defaults to default python interpreter when your
selected choice isn't available.
updated documentation where appropriate
2012-07-17 13:45:35 -04:00
Anssi Kääriäinen
29132ebdef
Fixed #17788 -- Added batch_size argument to qs.bulk_create()
...
The qs.bulk_create() method did not work with large batches together
with SQLite3. This commit adds a way to split the bulk into smaller
batches. The default batch size is unlimited except for SQLite3 where
the batch size is limited to 999 SQL parameters per batch.
Thanks to everybody who participated in the discussions at Trac.
2012-07-17 15:24:41 +03:00
Daniel Greenfeld
b90caf014c
Changed myapps.models.py to myapps/models.py
2012-07-15 19:29:19 -07:00
Daniel Greenfeld
dea554bd9d
Added mention in MRO section about method/attribute inheritence. Added simple examples to Generic editing views, added index to Generic editing views and Editing mixins, added missing template_name_suffix attribute to Generic editing views.
2012-07-15 17:30:39 -07:00
Claude Paroz
cdcdd131da
Dropped support for GDAL < 1.5
...
GDAL 1.5 has been released in December 2007.
2012-07-15 21:10:32 +02:00
Aymeric Augustin
fb46f243b4
Fixed #18625 -- Removed old-style use of url tag
...
from the documentation.
2012-07-15 11:19:50 +02:00
Alex Gaynor
8b3c2f2c51
Deprecate two methods (which I seriously doubt anyone ever used, but they were documented so...) because they cannot be implemented efficiently on top of collections.SortedDict in Python 2.7 and up.
2012-07-14 16:08:42 -07:00
Claude Paroz
b6215f6810
Updated links for MacOSX python installers
2012-07-13 17:49:50 +02:00
Aymeric Augustin
8c670ee347
Fixed #18617 -- Highlighted that the app_directories template loader depends on the order of INSTALLED_APPS.
...
Thanks evildmp for the patch.
2012-07-12 23:02:58 +02:00
Claude Paroz
e806f047f3
Removed old gis install instructions for obsolete distros
2012-07-12 19:44:15 +02:00
Tim Graham
d44aa98184
Fixed #18173 - Corrected ModelAdmin documentation for get_changelist.
...
Thanks Keryn Knight for the report and vanessagomes for the patch.
2012-07-08 18:35:17 -04:00
Aymeric Augustin
5e94ef293c
Fixed #18374 -- Explained "corrupt image" error
...
Thanks fabian and charettes.
2012-07-08 11:53:45 +02:00
Claude Paroz
249c445446
Fixed #18164 -- Precised startapp template context content
2012-07-07 23:08:43 +02:00
Aymeric Augustin
bbc590697a
Removed Django 1.0-specific sections.
2012-07-07 16:44:55 +02:00
Jannis Leidel
0a68a2994b
Fixed #18254 -- Added ability to the static template tags to store the result in a contextt variable. Many thanks to Andrei Antoukh for the initial patch.
2012-07-07 15:30:25 +02:00
Tim Graham
e4a1407a9c
Fixed #17997 - Documented that the debug server is now multithreaded by default.
...
Thanks trey.smith@ for the report and vanessagomes for the patch.
2012-07-05 08:39:05 -04:00
Luke Plant
bee498f3a2
Added 'format_html' utility for formatting HTML fragments safely
2012-07-03 22:20:12 +01:00
Luke Plant
f33e150369
Documented utils.html.escape and conditional_escape
2012-07-03 22:20:12 +01:00
Tim Graham
7313468f85
Fixed #17436 - Added warning about overriding Model.__init__()
...
Thanks zsiciarz for the draft patch.
2012-07-01 18:04:16 -04:00
Tim Graham
9974069620
Fixed #16882 - Clarified why one should not use 'init_command' after initial database creation.
2012-07-01 07:25:24 -04:00
Raúl Cumplido
55ffcf8e7b
Fixed #18145 -- Improved documentation of unique_together type fields
2012-06-30 17:16:40 -04:00
Claude Paroz
03896eb5df
Fixed #17026 -- Improved wording of contrib.messages' storage backends section
2012-06-30 22:21:23 +02:00
Claude Paroz
da200c5e35
Fixed #16519 -- Deprecated mimetype kwarg of HttpResponse __init__
...
This keyword was already deprecated in the code (supported for
backwards compatibility only), but never formally deprecated.
Thanks Paul McMillan for the report and yasar11732 for the initial
patch.
2012-06-30 21:27:47 +02:00
Aymeric Augustin
54b1519dfd
Fixed a formatting issue in the CBV docs.
2012-06-28 17:18:50 +02:00
Claude Paroz
4f53e77f07
Fixed #18306 -- Removed most of GeoDjango-specific deployment docs
2012-06-28 13:42:36 +02:00
Claude Paroz
8a5d1a6b93
Updated obsolete links in the documentation
2012-06-28 10:49:07 +02:00
Tim Graham
c8928b91b5
Fixed #17511 - Removed reference to deprecated "reset" management command in FAQ; thanks voxpuibr@ for the report.
2012-06-27 18:54:42 -04:00
Anssi Kääriäinen
b6c356b7bb
Fixed #17485 -- Made defer work with select_related
...
This commit tackles a couple of issues. First, in certain cases there
were some mixups if field.attname or field.name should be deferred.
Field.attname is now always used.
Another issue tackled is a case where field is both deferred by
.only(), and selected by select_related. This case is now an error.
A lot of thanks to koniiiik (Michal Petrucha) for the patch, and
to Andrei Antoukh for review.
2012-06-26 18:08:42 +03:00
jnns
c864b36ba1
Updated TEMPLATE_CONTEXT_PROCESSORS defaults in the docs.
...
django.core.context_processors.tz was missing from default
TEMPLATE_CONTEXT_PROCESSORS in the template api documentation.
2012-06-23 16:02:15 +02:00