summaryrefslogtreecommitdiff
path: root/django/contrib
AgeCommit message (Collapse)Author
2013-12-16Fixed #17413 -- Serialization of form errors along with all metadata.Loic Bistuer
2013-12-14Revert "Allowed running GIS form tests that don't require spatial database"Claude Paroz
This reverts commit 07fe0bf3f4a49a734f83f5ea30130449dacf9660. This was not working properly on system without geos library installed.
2013-12-14Fixed #21250 -- Made HTTP auth user header configurable in testsBartolomé Sánchez
Currently, if the authentication mechanism uses a custom HTTP header and not REMOTE_USER, it is not easy to test. This commit modifies remote user tests in order to make them more generic.
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-14Allowed running GIS form tests that don't require spatial databaseJakub Gocławski
2013-12-14Fixed #21606 -- Fixed default_lat and default_lon override in OSMWidgetJakub Gocławski
2013-12-12Fixed #21473 -- Limited language preservation to logoutLudwik Trammer
Current language is no longer saved to session by LocaleMiddleware on every response (the behavior introduced in #14825). Instead language stored in session is reintroduced into new session after logout. Forward port of c558a43fd6 to master.
2013-12-11Fixed #21510 -- Readded search reset link in changelist search barClaude Paroz
Thanks moritz.pfeiffer at alp-phone.ch for the report and Tim Graham for the initial patch.
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-12-07Renamed first argument of class method to clsmaurycyp
2013-12-07Fixed #18531 -- Deprecated Geo SitemapsClaude Paroz
I've chosen a quick deprecation path, as Geo Sitemaps themselves are deprecated from some time now.
2013-12-07Removed unneeded string normalization in contrib.adminClaude Paroz
With Python 2.7 and up, named parameter keys are not limited to bytestrings any longer. This mainly reverts 3bd384aa626.
2013-12-06Added new 'srtext' spatialite 4.x SpatialRefSys column to its model.Ramiro Morales
This is for general consistency in the GeoDjango DB backends. Thanks Claude for the fix. Refs #19678.
2013-12-06Fixed #19678 -- GeoDjango test failure with spatialite >= 3.0.Ramiro Morales
Thanks Julien for the report and Claude for the fix.
2013-12-06Renamed syncdb to migrate in spatialite backendClaude Paroz
2013-12-05Corrected setting name in gis test error message.Ramiro Morales
2013-12-05Removed 'return' in __init__maurycyp
2013-12-01Fixed #21543 -- Removed base_dir attribute in StaticFilesHandler.Krzysztof Jurewicz
This code seems to be an artifact of AdminMediaHandler removed in [5c53e30607].
2013-11-30Fixed #21535 -- Fixed password hash iteration upgrade.Tim Graham
Thanks jared_mess for the report.
2013-11-30Removed gender-based pronouns per [c0a2daad78].Tim Graham
2013-11-29Fixed an unescisarily gendered pronoun in a docstringAlex Gaynor
2013-11-29Fixed #21380 -- Added a way to set different permission for static directories.Vajrasky Kok
Previously when collecting static files, the directories would receive permissions from the global umask. Now the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS and there's an option to specify the permissions by subclassing any of the static files storage classes and setting the directory_permissions_mode parameter.
2013-11-28Fixed #21496 -- Fixed crash when GeometryField uses TextInputClaude Paroz
Thanks Rhett Garber for the report and initial patch.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-27A handle of flake8 fixesAlex Gaynor
2013-11-27Added a bulk option to RelatedManager remove() and clear() methodsLoic Bistuer
Refs #21169
2013-11-27PostGIS schema editor supportAndrew Godwin
2013-11-27Add gis deconstruct() method (this does not make schema work)Andrew Godwin
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
2013-11-24Fixed #21504 -- Don't shadow database errors when testing for postgis version.Baptiste Mispelon
Thanks to trac user paultag for the report.
2013-11-23Fixes #21412 -- Better error message for messages.add_messageDenis Cornehl
Problem were users calling messages.debug/info/* with a wrong argument and getting the error "You cannot add messages without installing MessageMiddleware" Thanks to trac-user merb for the report.
2013-11-23Fixed #21012 -- New API to access cache backends.Curtis Maloney
Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
2013-11-23Fixed #21445 -- Clean up misuse of null in quickElement.Baptiste Mispelon
Thanks to trac user parsch for the report.
2013-11-22Fixed missing admindocs' site_headerBouke Haarsma
2013-11-21Updated admindocs to use class-based viewsClaude Paroz
Thanks Bouke Haarsma for the review.
2013-11-21Fixed #21405 -- Prevented queryset overwrite in BaseModelAdminClaude Paroz
Thanks guido@20tab.com for the report and Tim Graham for the analyze.
2013-11-21Removed isinstance(RelatedObject) checks from admin.utilsAnssi Kääriäinen
2013-11-21Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen
Report, analysis and tests from stephenmcd.
2013-11-21Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer
ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
2013-11-19Fixed #21361 -- allowed access self.value() from SimpleListFilter lookupVajrasky Kok
Reviewed by Chris Medrela.
2013-11-18Optimise admin imagesCurtis Maloney
2013-11-16Fixed #21428 -- editable GenericRelation regressionAnssi Kääriäinen
The GenericRelation refactoring removed GenericRelations from model._meta.many_to_many. This had the side effect of disallowing editable GenericRelations in ModelForms. Editable GenericRelations aren't officially supported, but if we don't fix this we don't offer any upgrade path for those who used the ability to set editable=True in GenericRelation subclass. Thanks to Trac alias joshcartme for the report and stephencmd and Loic for working on this issue.
2013-11-16Moved import at proper place in contrib.sitesClaude Paroz
2013-11-15Fixed #21415 -- Replaced escape sequence by literal non-breaking spaceglts
Unfortunately, escape sequences (\x.. or \u....) do not fit well with the gettext toolchain. Falling back to using literal char, even if visibility is not ideal.
2013-11-14Propagate get_user_model exception from get_userMatt Robenolt
Fixes #21439
2013-11-11Merge pull request #1907 from Bouke/tickets/21388Claude Paroz
Fixed #21388 -- Corrected language code for Frisian
2013-11-11Fixed #21421 -- Added level_tag attribute on messages.Sjoerd Langkemper
Exposing the level name (e.g. "info") makes it possible to prepend something to the class name. For example, Twitter Bootstrap has an alert-info class. This class can now be added to the message using `class="alert-{{ message.level_tag }}". Because the level_tag was on the end of the `tags` property, it could not be used in this fashion when extra_tags were given.
2013-11-11Fixed #21388 -- Corrected language code for FrisianBouke Haarsma
2013-11-11Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma
Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
2013-11-09Fixed #21398 -- Fixed BCryptSHA256PasswordHasher with py-bcrypt and Python 3.Tim Graham
Thanks arjan at anymore.nl for the report.