summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-16First pass on squashmigrations command; files are right, execution not.Andrew Godwin
2013-10-16Improve migration optimizer to be able to optimize through other opsAndrew Godwin
2013-10-15Merge pull request #1744 from unaizalakain/ticket_7261Alex Gaynor
Fixed #7261 -- support for __html__ for library interoperability
2013-10-15Merge pull request #1755 from loic/typoTim Graham
Fixed DeprecationWarning caused by assertEquals.
2013-10-16Fixed DeprecationWarning caused by assertEquals.Loic Bistuer
2013-10-15Made sqlite introspection also show views like other backendsClaude Paroz
Refs #6730.
2013-10-15Fixed #16855 -- select_related() chains as expected.Marc Tamlyn
select_related('foo').select_related('bar') is now equivalent to select_related('foo', 'bar'). Also reworded docs to recommend select_related(*fields) over select_related()
2013-10-15Moved misplaced import in backends initClaude Paroz
2013-10-15Updated admin alert colorsRyan Allen
refs #21220.
2013-10-15Merge pull request #1751 from tmaster/ticket_21006_improvementDaniele Procida
Improvement on InlineFormSet doc, refs #21006
2013-10-15Improvement on InlineFormSet doc, refs #21006Tianyi Wang
2013-10-15Fixed #21263 -- Fixed issue with override_settings in inherited classesClaude Paroz
When both parent and child classes are decorated with override_settings, child class settings should take precedence. Thanks Sephi for the report and Marc Tamlyn for the review.
2013-10-15Fixed #7603 -- Added a 'scheme' property to the HttpRequest objectUnai Zalakain
`HttpRequest.scheme` is `https` if `settings.SECURE_PROXY_SSL_HEADER` is appropriately set and falls back to `HttpRequest._get_scheme()` (a hook for subclasses to implement) otherwise. `WSGIRequest._get_scheme()` makes use of the `wsgi.url_scheme` WSGI environ variable to determine the request scheme. `HttpRequest.is_secure()` simply checks if `HttpRequest.scheme` is `https`. This provides a way to check the current scheme in templates, for example. It also allows us to deal with other schemes. Thanks nslater for the suggestion.
2013-10-15Fixed #21006 -- Added example code for overriding methods on an InlineFormSet.Tianyi Wang
Thanks treysta at gmail.com for the suggestion.
2013-10-15Merge pull request #1382 from loic/ticket19617Marc Tamlyn
Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
2013-10-15Handle Apps with South migrations as unmigrated apps.Florian Apolloner
2013-10-14Fixed a webdesign template tag docstring to prevent parsing as metadata.Tim Graham
Previously admindocs would throw an error when processing it: "Error in "default-role" directive: no content permitted." refs #6681
2013-10-15Fixed #7261 -- support for __html__ for library interoperabilityUnai Zalakain
The idea is that if an object implements __html__ which returns a string this is used as HTML representation (eg: on escaping). If the object is a str or unicode subclass and returns itself the object is a safe string type. This is an updated patch based on jbalogh and ivank patches.
2013-10-14Fixed #21223 -- Added form.id_for_label to topic guide.Sorcha Bowler
Thanks ebertti at yahoo.com.br for the suggestion.
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-14Fixed #21269 -- Don't crash when CommandError contains non-asciiClaude Paroz
Thanks kontakt@eikefoken.de for the report.
2013-10-14Close file after tests added in 945e033a69.Ramiro Morales
Avoids failures on Windows. Refs #8918.
2013-10-14Added flake8 info to setup.cfg.Tim Graham
This config allows a clean run of flake8. Some of the ignored codes will be remove over time as we clean things up.
2013-10-14Fixed #20910 -- Added a "snippet" sphinx directive to allow prefixing a ↵M Nasimul Haque
filename. Thanks Marc Tamlyn for the suggestion.
2013-10-14Fixed #20962 -- Documented that template tag render() may raise exceptions.Bouke Haarsma
Thanks Keryn Knight for the report.
2013-10-14Fixed #8620 -- Updated the Form metaclass to support excluding fields by ↵Loic Bistuer
shadowing them.
2013-10-14Fixed #19617 -- Refactored Form metaclasses to support more inheritance ↵Loic Bistuer
scenarios. Thanks apollo13, funkybob and mjtamlyn for the reviews.
2013-10-14Clarfied the ModelForm docs with respect to generated vs. declared fields.Loic Bistuer
The ModelForm docs suggested that fields defined declaratively override default fields generated from the form Meta. This is conceptually wrong, especially with inheritance in mind. Meta is usually defined on the topmost ModelForm subclass, while fields can come from anywhere in the MRO, especially base classes; therefore we suggested that something defined in a base class override something from a subclass. This patch rephrases the docs around the idea that Meta is used to generate *missing* fields. Refs #8620, #19617. Thanks @mjtamlyn and @timgraham for the review.
2013-10-14Fixed #21210 -- Documented when runserver doesn't auto-restart.Bouke Haarsma
Thanks gergely at polonkai.eu for the suggestion.
2013-10-14Merge pull request #1733 from joaoxsouls/#18866Marc Tamlyn
Fixed #18866 -- added validation error for verbose_name longer than 39 characters
2013-10-14Fixed #18866 -- added validation error for verbose_name longer than 39 ↵joaoxsouls
characters Added a validation error check when creating the permissions for model, to avoid cryptic database error when the verbose_name is longer than 39 characters thanks elena for reporting it
2013-10-14Fixed #21264 -- Incorrect RST usage in docsBouke Haarsma
2013-10-14Fixed #21027 -- Updated tutorial 5 docs to link to management shell command ↵Max Vizard
page.
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-10-14Amend my description in committers.txt.Marc Tamlyn
2013-10-14Imported custom user classes in tests depending on itClaude Paroz
Without those imports, affected test files cannot be run independently. Refs #21164.
2013-10-13Fixed #21256 -- Error in datetime_safe.datetime.combine.Aymeric Augustin
2013-10-13Fixed #21198 -- Prevented invalid use of @python_2_unicode_compatible.Aymeric Augustin
Thanks jpic for the report and chmodas for working on a patch. Reverts 2ea80b94. Refs #19362.
2013-10-13Fixed #19560 -- Identified field in warning for naive datetime.Aymeric Augustin
Thanks gcc for the report and vajrasky for the patch.
2013-10-12Fixed #21173 -- Stopped fixing format for date-based widgets at init timeClaude Paroz
Thanks Marc Tamlyn for the review.
2013-10-12Forms docs: More emphasis in 'id' value customizability.Ramiro Morales
2013-10-12Updated OpenLayers version from 2.11 to 2.13Claude Paroz
2013-10-11Fixed #15582 -- Documented how TransactionTestCase.multi_db affects fixtures.Tim Graham
Thanks slinkp for the suggestion.
2013-10-11Fixed errors in 848101bf1736d1c01eb86968e85a14c7466bb376Tim Graham
2013-10-11Minor edits to docs/topics/db/queries.txt.Cody Scott
2013-10-11Added tests for URLValidator schemes.Sascha Peilicke
2013-10-11Fixed #13252 -- Added ability to serialize with natural primary keys.Tai Lee
Added ``--natural-foreign`` and ``--natural-primary`` options and deprecated the ``--natural`` option to the ``dumpdata`` management command. Added ``use_natural_foreign_keys`` and ``use_natural_primary_keys`` arguments and deprecated the ``use_natural_keys`` argument to ``django.core.serializers.Serializer.serialize()``. Thanks SmileyChris for the suggestion.
2013-10-11Fixed #8918 -- Made FileField.upload_to optional.Tim Graham
Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Small improvements to docs/topics/db/models.txtCody Scott