Bouke Haarsma
2bab9d6d9e
Fixed #21389 -- Accept most valid language codes
...
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.
HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
2014-02-26 16:58:04 +01:00
navneet suman
3390550f6f
Fixed #22145 -- Clarified docs on Field.blank and Field.null options.
...
Thanks skipjack at peru.com for the suggestion.
2014-02-25 20:59:34 -05:00
Tim Graham
4132e013ec
Removed a nonexistent link in the docs.
2014-02-25 11:28:36 -05:00
Rik
355572ac56
Fixed #12670 -- Added a note about permissions of files stored in FILE_UPLOAD_TEMP_DIR.
...
Thanks simon29 for the suggestion.
2014-02-25 11:19:31 -05:00
Henk Vos
e65c0ccac0
Fixed #22071 -- Added a warning regarding override_settings and aliasing.
...
Thanks EvilDMP for the suggestion.
2014-02-25 10:48:27 -05:00
Szczepan Cieślik
e816198034
Fixed docs typos.
2014-02-25 10:28:32 -05:00
Iacopo Spalletti
65b4626528
Fixed #22142 -- Documented PostGIS 2 database creation during tests
2014-02-25 13:41:50 +01:00
Claude Paroz
91f4a75a6b
Fixed #22116 -- Added precision about WSGIPythonPath separator
...
Thanks donjpacheco for the initial patch.
2014-02-24 18:29:00 +01:00
Daniele Procida
4f7b7ef683
Merge pull request #2363 from nheyning/22019_add_objects_doc
...
Fixed #22019 -- added documentation on Model attributes
2014-02-23 17:35:43 +01:00
Nicolaas Heyning
e1d2a0bd04
added documentation on Model attributes
2014-02-23 17:16:12 +01:00
Alex de Landgraaf
b645be80e9
Fixed #22063 -- Added reference to NoReverseMatch from the reverse() documentation
2014-02-23 13:45:52 +01:00
Baptiste Mispelon
072fb923e1
Fixed #21881 -- Clarify behavior of {% ssi %} template tag.
...
When using the `parsed` option, {% ssi %} has the same limitation
as {% include %}, namely that the rendering of the included
template is done separately.
Thanks to trac user nagyv for the report and to alextreme for
the patch.
2014-02-23 12:00:24 +01:00
Marcin Sokół
b887408486
Fixed #22113 -- changed object_name to model_name in CBV docs.
...
Thanks to trac user nikunj.sg for the report.
2014-02-22 23:36:54 +01:00
Baptiste Mispelon
1d3ae4760b
Fixed warnings when building the documentation.
2014-02-22 21:43:50 +01:00
Greg Chapple
ede99f0ec3
Fixed #22032 -- added documentation for settings.MIGRATION_MODULES
2014-02-22 20:14:41 +01:00
Jochem Oosterveen
271929dd9d
Fixed #22092 -- Documented ResolverMatch.view_name
2014-02-22 18:31:40 +01:00
Erik Romijn
8cd32f0965
Fixed #22120 -- Documented persistent activation of languages and cleaned up language session key use
2014-02-22 18:29:06 +01:00
Marcin Sokół
09b725f51b
Fixed #21902 -- Documented search order for list_display.
2014-02-22 18:11:43 +01:00
Erik Romijn
98f13762d7
Fixed #22123 -- EmailValidator now also accepts IPv6 literals in addresses
2014-02-22 17:45:33 +01:00
Martin Matusiak
d399731bf2
Fixed #22007 -- Fixed cbv docs - make imports consistent
...
Thanks to trac user kinjal.dixit for the report.
2014-02-22 14:39:09 +01:00
Baptiste Mispelon
926e18d7d1
Deprecated django.utils.text.javascript_quote.
...
Refs #21725 .
2014-02-22 13:50:12 +01:00
Alasdair Nicol
462edd22e5
Fixed #22112 -- Added RedirectView.pattern_name to CBV flattened index
...
Also moved accessor method get_redirect_url next to its attribute url
for consistency with the other views.
Thanks nikunj.sg for the report
2014-02-21 22:23:06 +01:00
David Sanders
adcedfe8ba
Capitalize SQL keywords
2014-02-20 11:32:04 -07:00
David Sanders
6dfd02f88c
Capitalize SQL keywords
2014-02-20 11:26:59 -07:00
Tim Graham
821fc925f0
Fixed #22093 -- Made Form.Meta.fields examples consistent.
...
Thanks david-schultz at gmx.net for the suggestion.
2014-02-19 12:29:47 -05:00
Loic Bistuer
99416c7ad0
Added an example to the release notes for custom reverse managers.
2014-02-19 07:45:24 -05:00
Baptiste Darthenay
b4f21d1807
Fixed #19647 -- Added formats.py for Esperanto.
...
Thanks to Objectivesea and Guttorm Flatabø (dittaeva)!
2014-02-19 11:58:20 +01:00
Tim Graham
ffa238c3f7
Fixed #22062 -- Corrected static files config for Apache >= 2.4
2014-02-18 09:29:22 -05:00
Artur Frysiak
faf6a911ad
Fixed #22023 -- Raised an error for values() followed by defer() or only().
...
Previously, doing so resulted in invalid data or crash.
Thanks jtiai for the report and Karol Jochelson,
Jakub Nowak, Loic Bistuer, and Baptiste Mispelon for reviews.
2014-02-17 14:46:13 -05:00
Marek Wywiał
8274fa60f8
Made the new template.Context.flatten() method a public API.
...
That method was introduced in 9db4271bd1
.
Refs #21765 .
2014-02-16 15:18:45 +01:00
Grzegorz Rożniecki
57ba5bf97b
Added some links in i18n documentation
2014-02-16 14:50:32 +01:00
Grzegorz Rożniecki
bb83a32623
Fixed two typos in documentation
2014-02-16 14:50:32 +01:00
Zbigniew Siciarz
74d4d58b62
Fixed #21939 -- Deprecated loading ssi/url tags from future.
2014-02-16 13:25:21 +01:00
MattBlack85
653527de40
Fixed #18745 - Documentation change explaining tuple to list with signing.
...
Thanks to lee for the report.
2014-02-16 13:12:49 +01:00
Zbigniew Siciarz
94b5bc361a
Fixed #22002 -- Documented avoiding database interaction in AppConfig.ready().
...
Thanks Marc Tamlyn for the suggestion.
2014-02-15 13:50:31 -05:00
Zbigniew Siciarz
44814e78cc
Fixed #22013 -- Documented difference between SERVER_EMAIL and DEFAULT_FROM_EMAIL.
2014-02-15 19:11:46 +01:00
chomik
985ae732b2
Fixed #21884 -- Mentioned that exact is the defaut QuerySet lookup type
...
Thanks to cjerdonek for the suggestion.
2014-02-15 17:17:58 +01:00
Florian Apolloner
9d95dd08e5
Merge pull request #2281 from rhcarvalho/ticket_22053
...
Change analyse (British) to analyze (American).
2014-02-15 13:05:27 +01:00
Michal Prusek
00da02cbfd
Fixed #22052 -- Corrected a misspelling of ellipsoid
2014-02-15 13:02:16 +01:00
Rodolfo Carvalho
3d898b0e12
Change analyse (British) to analyze (American).
2014-02-15 13:00:56 +01:00
djendrju
4ac4c98cbd
Fixed #22049 -- Corrected a misspelling of dimensional
2014-02-15 12:08:01 +01:00
Tim Graham
865392c478
Added 1.6.3 release note for refs #21566 .
2014-02-14 21:04:44 -05:00
Klemens Mantzos
f683cb90be
Fixed #21924 -- Added the ability to specify a reverse order for admin_order_field.
...
Thanks Klemens Mantzos for the report and initial patch.
2014-02-14 19:53:44 -05:00
Lukasz Balcerzak
0242134d32
Fixed #17942 -- Added a JsonResponse class to more easily create JSON encoded responses.
...
Thanks leahculver for the suggestion and Erik Romijn,
Simon Charette, and Marc Tamlyn for the reviews.
2014-02-14 18:25:19 -05:00
Antoine Catton
e3d0790bd0
Fixed #21177 -- Made resolve_url support relative URLs.
...
This fixes redirecting to relative URLs with django.shortcuts.redirect.
2014-02-14 17:58:03 -05:00
Alasdair Nicol
f3805f5c52
Added missing snippet to show filename in docs
2014-02-14 12:45:35 +00:00
Loic Bistuer
2e4200b5c7
Fixed #21654 -- Documented a use-case for Form.errors.as_data().
...
Thanks selwin for the suggestion.
2014-02-14 06:52:50 -05:00
Simon Meers
007c5cd367
Updated docs that misreported django.apps.apps.ready as being a method.
2014-02-14 12:50:27 +11:00
Tim Graham
e86aa83dc3
Fixed a link in the 1.7 release notes.
2014-02-13 10:32:50 -05:00
Jeremy
f94f466cd3
Fixed #19496 -- Added truncatechars_html filter.
...
Thanks esevece for the suggestion and Nick Sandford and Martin Warne
for the inital work on the patch.
2014-02-13 10:27:27 -05:00
Alasdair Nicol
8aa1efff6d
Fixed #21951 -- Updated docs to use __str__ for Python 3
...
Thanks Tim Graham for the report and recommendations
2014-02-13 07:12:40 -05:00
Andrew Godwin
dbe82e74f2
Add reference documentation for operations and stubs for schemaeditor.
2014-02-12 18:53:35 +00:00
Christopher Adams
eefc88feef
Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.
...
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now
be a callable that returns either a ``Q`` object or a dict.
Thanks michael at actrix.gen.nz for the original suggestion.
2014-02-11 14:05:12 -05:00
Claude Paroz
fb1e3435a4
Fixed #21996 -- Used proper encoding for GeoIP content
...
Thanks Florent Messa for the report.
2014-02-10 16:09:04 +01:00
Claude Paroz
c3dd38c574
Added 1.6.3 release notes stub
2014-02-10 16:09:04 +01:00
Christopher Medrela
ee9fcb1672
Fixed #17673 -- Forbid field shadowing.
...
Thanks Anssi Kääriäinen for the suggestion.
2014-02-10 10:04:19 -05:00
Markus Amalthea Magnuson
59d9b26474
Fixed #21190 -- Added a new ePub theme for documentation.
2014-02-10 08:24:40 -05:00
Julian Wachholz
9a4ee8ddb8
Fixed #21994 -- Added form_dict argument to calls of WizardView.done()
...
Added an additional keyword argument ``form_dict`` to calls of
WizardView.done() implementations which allows easier access to validated
forms by their step name.
2014-02-10 07:28:39 -05:00
Si Feng
b102c27ff4
Fixed #20784 -- Added inverse_match parameter to RegexValidator.
2014-02-10 05:38:43 -05:00
Chris Bailey
c5395eef76
Allowed a message to be passed to assertQuerysetEqual to make it consistent with other assert methods.
2014-02-10 05:21:23 -05:00
Tim Graham
29345390b8
Minor edits to new findstatic functionality; refs #19879 .
...
Hopefully fixes a test failure on Jenkins.
2014-02-09 15:39:04 -05:00
Claude Paroz
95ede98e60
Removed double word in model docs
2014-02-09 20:30:34 +01:00
Vajrasky Kok
6a9ed7d403
Fixed #19879 -- Have 'findstatic' says on which directories it searched the relative paths.
...
Added searched_locations in finders module. Added verbosity flag level 2 on 'findstatic'
command that will output the directories on which it searched the relative paths.
Reported by ccurvey. Initial patch by Jonas Svensson and Vajrasky Kok.
2014-02-09 14:22:22 +00:00
Jannis Leidel
5cc0555603
Fixed #21482 -- Uplifted restriction of collectstatic using symlink option in Windows NT 6.
...
Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
2014-02-09 12:39:20 +00:00
Andrew Godwin
d5df7a0515
Fixed #21969 : Fix behaviour of initial_data with migrated apps
2014-02-09 12:22:59 +00:00
Baptiste Mispelon
a5391db76a
Fixed inaccuracies in generic mixins documentation.
2014-02-09 10:59:18 +00:00
Kevin Christopher Henry
6fe26bd3ee
Fixed #19373 -- Ported Windows file locking from PyWin32 to ctypes
...
There wasn't any file locking under Windows unless PyWin32 was
installed. This removes that (undocumented) dependency by using ctypes
instead.
Thanks to Anatoly Techtonik for writing the ctypes port upon which this
is based.
2014-02-08 15:52:06 -05:00
Berker Peksag
5d263dee30
Fixed #21674 -- Deprecated the import_by_path() function in favor of import_string().
...
Thanks Aymeric Augustin for the suggestion and review.
2014-02-08 11:12:19 -05:00
Claude Paroz
fcc21837dc
Removed extra backquote in field docs
2014-02-08 14:20:56 +01:00
Loic Bistuer
8847a0c601
Fixed #16192 -- Made unique error messages in ModelForm customizable.
...
Overriding the error messages now works for both unique fields, unique_together
and unique_for_date.
This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS
since previously only fields' errors were customizable.
Refs #20199 .
Thanks leahculver for the suggestion.
2014-02-08 04:59:09 -05:00
Jacob Kaplan-Moss
84fb7b468e
Updated 1.6.2 release notes for release (and linkified tickets).
2014-02-06 15:34:22 -06:00
Vajrasky Kok
d3cf6cfacf
Fixed #17713 -- Renamed BaseDatabaseFeatures.allows_primary_key_0 to allows_auto_pk_0.
...
MySQL does allow primary key with value 0. It only forbids autoincrement
primary key with value 0.
Thanks Claude Paroz for the report.
2014-02-06 05:16:40 -05:00
Christopher Medrela
b22d6c47a7
Fixed #17005 -- Added CurrentSiteMiddleware to set the current site on each request.
...
Thanks jordan at aace.org for the suggestion.
2014-02-06 04:45:49 -05:00
Tim Graham
b17c75564f
Added missing items to 1.6.2 release notes.
2014-02-05 19:29:41 -05:00
Loic Bistuer
36f260341a
Extended the release notes for chainable Manager/QuerySet methods.
...
Refs #20625 .
2014-02-05 18:30:45 -05:00
Baptiste Mispelon
2dd88f0687
Added previous commit to 1.6.2 release notes.
2014-02-05 21:46:02 +01:00
Loic Bistuer
f265c1ef13
Fixed gendered examples in the docs.
2014-02-05 14:58:50 -05:00
Claude Paroz
343dfff133
Removed the this_is_the_login_form hack
...
Refs #21911 . Now that we have a more traditional login form, we
don't need any more a special field telling us we are dealing with
the login form.
2014-02-04 20:02:28 +01:00
Claude Paroz
be0ad62994
Fixed #21911 -- Made admin views redirect to login when needed
...
Historically, the Django admin used to pass through the request
from an unauthorized access to the login view directly. Now we
are using a proper redirection, which is also preventing
inadvertantly changing data when POSTing login data to an admin
view when user is already authorized.
Thanks Marc Tamlyn and Tim Graham for the reviews.
2014-02-04 20:02:28 +01:00
Tim Graham
867f8fd6c7
Made some PEP8 fixes in docs/ref/forms/widgets.txt
...
Thanks Siecje.
2014-02-04 06:24:13 -05:00
Tim Graham
d4a5019bef
Reordered deprecation timeline and added back old info; refs #21920 .
2014-02-03 08:32:32 -05:00
Aymeric Augustin
ab2f21080d
Added a note about a possible name clash.
...
Thanks Russell for the advice.
2014-02-02 15:31:34 +01:00
Aymeric Augustin
b5fbdf97db
Fixed typo.
2014-02-02 15:16:55 +01:00
Ian Foote
af64f829d7
Fix typo CRSF -> CSRF
2014-01-29 16:54:02 +00:00
Andrew Godwin
5dc4a8652c
Add an extra warning about custom save methods in migrations docs.
2014-01-28 14:10:40 +00:00
Carl Meyer
88a2d39159
Fixed #21874 -- Require Django applications to have a filesystem path.
...
Wherever possible this filesystem path is derived automatically from the app
module's ``__path__`` and ``__file__`` attributes (this avoids any
backwards-compatibility problems).
AppConfig allows specifying an app's filesystem location explicitly, which
overrides all autodetection based on ``__path__`` and ``__file__``. This
permits Django to support any type of module as an app (namespace packages,
fake modules, modules loaded by other hypothetical non-filesystem module
loaders), as long as the app is configured with an explicit filesystem path.
Thanks Aymeric for review and discussion.
2014-01-27 15:34:22 -07:00
Tim Graham
dfa28981ce
Added release note stubs for 1.5.6 and 1.4.11.
2014-01-26 17:48:28 -05:00
Tim Graham
2cbe1e28fb
Added missing items to 1.6.2 release notes.
2014-01-26 15:40:14 -05:00
Simon Charette
10e3faf191
Fixed #19774 -- Deprecated the contenttypes.generic module.
...
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368 .
Thanks to Ramiro, Carl and Loïc for the review.
2014-01-26 14:42:30 -05:00
Aymeric Augustin
3c47786cb9
Fixed #21702 -- get_model('app_label.ModelName').
...
Also added tests for get_model.
2014-01-26 13:01:09 +01:00
Aymeric Augustin
8e1fc03491
Fixed typo. Refs #21836 .
2014-01-26 09:30:10 +01:00
Aymeric Augustin
9ffab9cee1
Moved RequestSite and get_current_site.
...
Following the app-loading refactor, these objects must live outside of
django.contrib.sites.models because they must be available without
importing the django.contrib.sites.models module when
django.contrib.sites isn't installed.
Refs #21680 . Thanks Carl and Loic for reporting this issue.
2014-01-26 08:50:47 +01:00
Carl Meyer
8bc3780b67
Docs correction: apps loaded from eggs do not have appconfig.path None.
2014-01-25 20:56:36 -07:00
Carl Meyer
966b186981
Fixed #17304 -- Allow single-path and configured-path namespace packages as apps.
...
Also document the conditions under which a namespace package may or may not be
a Django app, and raise a clearer error message in those cases where it may not
be.
Thanks Aymeric for review and consultation.
2014-01-25 19:37:05 -07:00
Chris Jerdonek
798fd59fad
Fixed #21836 -- Improved transaction docs about autocommit mode
...
Clarified that queries in autocommit mode are committed immediately
only if a transaction has not already been started. Added to the
main transaction docs that Django's TestCase class implicitly wraps
its tests in transactions.
2014-01-25 21:20:17 +01:00
Aymeric Augustin
2ff93e027c
Fixed #21829 -- Added default AppConfigs.
...
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
2014-01-25 10:41:56 +01:00
Tim Graham
e1d18b9d2e
Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.
...
Thanks tragiclifestories for the report.
2014-01-24 08:52:43 -05:00
James Turley
4d8209431d
Fixed #21824 -- Added reference to LTS in docs/internals/security.txt
2014-01-24 08:13:17 -05:00
Marc Tamlyn
16f3a6a4c7
Fixed #21865 -- Incorrect signs in documented example.
...
Maths is hard.
2014-01-23 20:32:24 +00:00
Marc Tamlyn
d7aa0bd802
We should branch after the first beta.
...
We did this for 1.6 and it was very effective. 95%+ of fixes which merge
during the alpha are backported, as the policy is "all but really major
features". It's easier to just not merge any really major features.
After beta, we have feature freeze so we need to backport bugs to stable
but not features, so then the branch makes sense.
2014-01-23 20:07:14 +00:00