Commit Graph

5070 Commits

Author SHA1 Message Date
Aymeric Augustin 3f1a0c0040 Fixed #19160 -- Made lazy plural translations usable.
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
2013-01-30 20:28:16 +01:00
Ramiro Morales 47ddd6a408 Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments.
They are simply ignored now. This allows for a more correct behavior when
they are placed before translatable constructs on the same line.

Previously, the latter were wrongly ignored because the former were
preserved when converting template code to the internal Python-syntax
form later fed to xgettext but Python has no ``/* ... */``-style
comments.

Also, special comments directed to translators are now only taken in
account when they are located at the end of a line. e.g.::

  {# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #}
  {% trans "Literal B" %}

Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged.

Thanks juneih at redpill-linpro dot com for the report and Claude for
his work on the issue.
2013-01-29 19:13:23 -03:00
Tim Graham ee26797cff Fixed typos in docs and comments 2013-01-29 10:55:55 -07:00
Aymeric Augustin b99a4e1073 Updated metrics on the documentation. 2013-01-29 14:12:04 +01:00
Tim Graham 537d44b1b9 Fixed #19683 - Added a missing import in signing example.
Thanks sunsongxp@ for the report.
2013-01-29 06:12:33 -05:00
Claude Paroz f7394d2c32 Added HTML5 url input type
Refs #16630.
2013-01-28 22:11:00 +01:00
Claude Paroz 4f16376274 Added HTML5 email input type
Refs #16630.
2013-01-28 22:10:50 +01:00
Tim Graham 14d1d504d5 Fixed two malformed links. 2013-01-27 06:09:50 -05:00
Aymeric Augustin 55416e235d Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3. 2013-01-26 13:47:11 +01:00
Claude Paroz ebb504db69 Moved has_changed logic from widget to form field
Refs #16612. Thanks Aymeric Augustin for the suggestion.
2013-01-25 20:50:46 +01:00
Ramiro Morales ce27fb198d Revert "Patch by Claude for #16084."
This reverts commit 2babab0bb3.
2013-01-25 13:58:37 -03:00
Ramiro Morales 5b99d5a330 Added more shortcuts to i18n docs in index page. 2013-01-25 13:50:37 -03:00
Ramiro Morales 2babab0bb3 Patch by Claude for #16084. 2013-01-25 13:23:33 -03:00
Tim Graham eafc036476 Fixed #19577 - Added HTML escaping to admin examples.
Thanks foo@ for the report and Florian Apolloner for the review.
2013-01-25 06:53:40 -05:00
Ramiro Morales 1f6b2e7a65 Fixed #6682 -- Made shell's REPL actually execute $PYTHONSTARTUP and `~/.pythonrc.py`.
Also:

* Added a ``--no-startup`` option to disable this behavior. Previous
  logic to try to execute the code in charge of this funcionality was
  flawed (it only tried to do so if the user asked for ipython/bpython
  and they weren't found)
* Expand ``~`` in PYTHONSTARTUP value.

Thanks hekevintran at gmail dot com  for the report and initial patch.

Refs #3381.
2013-01-24 22:01:47 -03:00
Tim Graham eaa716a413 Fixed #19639 - Updated contributing to reflect model choices best practices.
Thanks charettes.
2013-01-24 07:59:39 -05:00
Florian Apolloner e2252bf977 Fixed a typo. 2013-01-24 11:58:06 +01:00
Nick Sandford 93e79b45bc Fixed #17416 -- Added widgets argument to inlineformset_factory and modelformset_factory 2013-01-24 08:58:17 +01:00
Justin Bronn 71c8539570 Fixed typo. 2013-01-23 12:36:48 -08:00
Tim Graham 0de2645c00 Fixed #19610 - Added enctype note to forms topics doc.
Thanks will@ for the suggestion.
2013-01-23 04:49:48 -05:00
Tim Graham 0db86273ae Fixed #19633 - Discouraged use of gunicorn's Django integration. 2013-01-22 19:02:31 -05:00
Tim Graham 214fb700b9 Fixed #19477 - Documented generic_inlineformset_factory
Thanks epicserve for the suggestion.
2013-01-22 18:17:26 -05:00
Tim Graham 5b2d9bacd2 Fixed #19640 - Added inlineformset_factory to reference docs.
Thanks wim@ for the suggestion.
2013-01-22 07:55:34 -05:00
Anssi Kääriäinen f96c86b029 Added missing versionadded 1.6 to docs of earliest()
Refs #17813
2013-01-20 06:45:00 +02:00
Nick Sandford fe54377dae Fixed #17813 -- Added a .earliest() method to QuerySet
Thanks a lot to everybody participating in developing this feature.
The patch was developed by multiple people, at least Trac aliases
tonnzor, jimmysong, Fandekasp and slurms.

Stylistic changes added by committer.
2013-01-20 06:39:35 +02:00
Tim Graham 0375244eae Fixed #19628 - Noted that app for custom user model must be in INSTALLED_APPS
Thanks dpravdin and Jordan Messina.
2013-01-18 18:38:12 -05:00
Aymeric Augustin 1dd7492843 Fixed #19632 -- Bug in code sample.
Thanks grossmanandy at bfusa com and Simon Charette.
2013-01-18 20:52:04 +01:00
Craig Blaszczyk 6158c79dbe Made (make|compile)messages commands accept multiple locales at once.
Thanks Craig Blaszczyk for the initial patch. Refs #17181.
2013-01-17 00:53:17 -03:00
Ramiro Morales eee865257a Fixed #17008 -- Added makemessages option to not remove .pot files.
Thanks airstrike for the report and initial patch, Julien for an
enhanced patch and Jannis for reviewing.
2013-01-16 20:29:06 -03:00
Tim Graham d406afe12e Fixed #19597 - Added some notes on jQuery in admin.
Thanks Daniele Procida.
2013-01-15 20:00:05 -05:00
Aymeric Augustin 50a985b09b Fixed #19099 -- Split broken link emails out of common middleware. 2013-01-15 17:41:45 +01:00
Aymeric Augustin 83d0cc5214 Fixed a typo in the error reporting docs. 2013-01-15 16:55:38 +01:00
Aymeric Augustin 74d72e21b4 Fixed #19614 -- Missing request argument in render call.
Thanks Dima Pravdin for the report.
2013-01-15 14:36:47 +01:00
Tim Graham c9b577ead6 Clarified WizardView.get_form_prefix doc, refs #19024 2013-01-15 07:56:09 -05:00
Tim Graham 43f89e0ad6 Fixed #19605 - Removed unused url imports from doc examples.
Thanks sergzach for the suggestion.
2013-01-15 07:50:26 -05:00
Tim Graham 4720117a31 Added details on minified jQuery and DEBUG mode for contrib.admin.
Thanks Daniele Procida.
2013-01-13 15:11:24 -05:00
Aymeric Augustin 0ca2d1e20a Fixed typo in file storage docs.
Thanks Jørgen Abrahamsen.
2013-01-13 19:36:49 +01:00
Tim Graham ba50d3e05b Fixed #14633 - Organized settings reference docs and added a topical index.
Thanks Gabriel Hurley for the original idea
and adamv for the draft patch.
2013-01-12 18:44:53 -05:00
Stephan Jaekel 17f8496fea Fixed #19024 -- Corrected form wizard docs for get_form_prefix. 2013-01-12 15:55:06 +01:00
Claude Paroz 4e2e8f39d1 Fixed #4833 -- Validate email addresses with localhost as domain 2013-01-11 20:45:46 +01:00
Ramiro Morales 1bbd36a36a Minor DEBUG setting reference formatting edit. 2013-01-11 16:15:17 -03:00
Vinod Kurup 5362134090 Fixed code examples in which render() calls were missing `request` parameter. 2013-01-11 15:52:47 -03:00
Nick Sandford eb6c107624 Fixed #19360 -- Raised an explicit exception for aggregates on date/time fields in sqlite3
Thanks lsaffre for the report and Chris Medrela for the initial
patch.
2013-01-11 18:10:28 +01:00
Tim Graham 9f9a7f03d7 Fixed #19437 - Clarified pip install instructions in contributing tutorial. 2013-01-11 07:01:56 -05:00
Tim Graham 71d76ec011 Fixed #10239 - Added docs for modelform_factory
Thanks ingenieroariel for the suggestion and slurms for the review.
2013-01-11 06:00:19 -05:00
Tim Graham 4da5947a87 Fixed #19588 - Added create_superuser to UserManager docs.
Thanks minddust for the report.
2013-01-10 15:16:25 -05:00
Tim Graham 227bd3f8db Addeded CSS to bold deprecation notices.
Thanks Sam Lai for mentioning this on the mailing list.
2013-01-09 19:03:34 -05:00
Tim Graham 066cf2d70e Fixed #19586 - Removed URL_VALIDATOR_USER_AGENT from setting docs.
It was removed in Django 1.5, not deprecated.
2013-01-09 18:32:27 -05:00
Tim Graham 1884868adc Added sphinx substitutions in place of hardcoded version numbers.
Refs #19571
2013-01-08 15:58:11 -05:00
Tim Graham 99315f709e Fixed #19555 - Removed '2012' from tutorial 1.
Thanks rodrigorosa.lg and others for the report.
2013-01-08 15:43:35 -05:00