summaryrefslogtreecommitdiff
path: root/django/contrib
AgeCommit message (Collapse)Author
2013-08-28Fixed #18171 -- Checked signature of authenticate() to avoid supressing ↵Michał Górny
TypeErrors. The current auth backend code catches TypeError to detect backends that do not support specified argumetnts. As a result, any TypeErrors raised within the actual backend code are silenced. In Python 2.7+ and 3.2+ this can be avoided by using inspect.getcallargs(). With this method, we can test whether arguments match the signature without actually calling the function. Thanks David Eyk for the report.
2013-08-26Fixed #20972 -- Make messages cookie follow session cookie secure/httponlyErik Romijn
2013-08-23Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/oracle/base.py django/db/backends/postgresql_psycopg2/base.py django/db/models/signals.py tests/queries/tests.py
2013-08-22Fixed #20922 -- Allowed customizing the serializer used by contrib.sessionsTim Graham
Added settings.SESSION_SERIALIZER which is the import path of a serializer to use for sessions. Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.
2013-08-22Fixed #19303 -- Fixed ModelAdmin.formfield_overrides on fields with choicesLukasz Balcerzak
2013-08-22Fixed #20934 -- Avoided NoReverseMatch in ModelAdmin.changelist_viewRainer Koirikivi
The view tried to display links to a ModelAdmin's change_view, which resulted in NoReverseMatches if get_urls was overridden to remove the corresponding url.
2013-08-21Import test case classes from their public API module.Ramiro Morales
2013-08-20Import test case classes from their public API module.Ramiro Morales
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-19Fixed #20640 -- Avoided NoReverseMatch in get_deleted_objectsRainer Koirikivi
The default delete action resulted in a NoReverseMatch if it were to list any Model with a ModelAdmin with `get_urls` overridden to remove the change url. Catching the error and not displaying the link in that case, as was already done for models with no registered admins. Thanks Keryn Knight for the report.
2013-08-19Fixed GIS regression caused by force_subqAnssi Kääriäinen
Caused by commit 7737305a4f5dc5006d92dac3a61523ad6c2a523a
2013-08-19Fixed #20777 -- Admin proxy model deletion regressionAnssi Kääriäinen
Added proxy_models tests by Harm Geerts <github@geertswei.nl>.
2013-08-16Fixed #20829 -- Skip postgis metadata tables with introspectionHarm Geerts
2013-08-16Combine consecutive with statementsClaude Paroz
Python 2.7 allows to combine several 'with' instructions.
2013-08-15Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol
not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
2013-08-14Fixed #11400 -- Passed kwargs from AbstractUser.email_user() to send_mail()SusanTan
Thanks Jug_ for suggestion, john_scott for the initial patch, and Tim Graham for code review.
2013-08-13Apply autoescaping to AdminURLFieldWidget.Jacob Kaplan-Moss
This is a security fix; disclosure to follow shortly.
2013-08-13Fixed is_safe_url() to reject URLs that use a scheme other than HTTP/S.Jacob Kaplan-Moss
This is a security fix; disclosure to follow shortly.
2013-08-13Merge pull request #1470 from loic/admin.actionlistTim Graham
Fixed overflow for the "Recent Actions" widget on the admin index.
2013-08-13Fixed overflow for the "Recent Actions" widget on the admin index.Loic Bistuer
Previously the CSS targeted "li.changelink" and therefore didn't work for the "add" and "delete" actions. Refs #14868.
2013-08-10Fixed #20828 -- Allowed @permission_required to take a list of permissionsersran9
Thanks Giggaflop for the suggestion.
2013-08-09SQLite test fix -- refs #9057Tim Graham
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/options.py
2013-08-09Fixed #9057 -- Added default_permissions model meta option.Tim Graham
Thanks hvendelbo for the suggestion and koenb for the draft patch.
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
2013-08-06Fixed #20865 -- Fixed raw_id_fields to work with callable limit_choices_to.Collin Anderson
2013-08-05Fixed #20832 -- Enabled HTML password reset emailJustin Michalicek
Added optional html_email_template_name parameter to password_reset view and PasswordResetForm.
2013-08-04Fixed a number of lint warnings, particularly around unused variables.Alex Gaynor
2013-08-04Introduced ModelAdmin.get_fields() and refactored get_fieldsets() to use it.Loic Bistuer
Refs #18681. This also starts the deprecation of ModelAdmin.declared_fieldsets
2013-08-04Merge pull request #1432 from loic/modeladmin.get_search_resultsTim Graham
Moved get_search_results from BaseModelAdmin to ModelAdmin.
2013-08-04Deprecated SortedDict (replaced with collections.OrderedDict)Curtis Maloney
Thanks Loic Bistuer for the review.
2013-08-04Moved get_search_results from BaseModelAdmin to ModelAdmin.Loic Bistuer
Refs #15961.
2013-08-03Added ModelAdmin.get_search_fields.Loic Bistuer
2013-08-02Fixed #18923 -- Corrected usage of sensitive_post_parameters in contrib.authTim Graham
Thanks Collin Anderson for the report.
2013-08-02Fixed LogEntry.get_admin_url() for non-existent models.Petr Dlouhý
Regression introduced by [369b6fa]; refs #18169.
2013-08-02Fixed #18681 -- GenericInlineModelAdmin.get_formset() no longer bypasses ↵Loic Bistuer
get_fieldsets(). Refs 23e1b59 which already fixed this issue for ModelAdmin and InlineModelAdmin.
2013-08-02Fixed #20838 -- Fixed Geodjango spatialrefsys test failure with postgis-2.0.3Harm Geerts
2013-07-31Fixed #12103 -- Added AuthenticationForm.confirm_login_allowed to allow ↵Tim Graham
customizing the logic policy. Thanks ejucovy and lasko for work on the patch.
2013-07-31Fixed #20348 -- Consistently handle Promise objects in model fields.Tai Lee
All Promise objects were passed to force_text() deep in ORM query code. Not only does this make it difficult or impossible for developers to prevent or alter this behaviour, but it is also wrong for non-text fields. This commit changes `Field.get_prep_value()` from a no-op to one that resolved Promise objects. All subclasses now call super() method first to ensure that they have a real value to work with.
2013-07-31Fixed #20793 -- Added Last-Modified header to sitemaps.Julian Bez
2013-07-31Fixed #20819 -- Return 404 instead of 500 error when ``staticfiles`` view is ↵Tai Lee
used in production.
2013-07-30Updated flatpages tests to override CSRF_FAILURE_VIEW.Kirill Zaitsev
2013-07-30Fixed a test that could fail depending on PASSWORD_HASHERS.Aymeric Augustin
Thanks Claude. Refs #20760.
2013-07-30Rename allow_syncdb to allow_migrateAndrew Godwin
2013-07-30Rename pre_ and post_syncdb to *_migrate, with aliases from old namesAndrew Godwin
2013-07-30Updated some minified admin javascript files.Julien Phalip
2013-07-30Fixed #19082 -- Enabled admin field pre-population for existing objects.Julien Phalip
Thanks to msaelices and d1ffuz0r for the initial patch and tests.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-29Fixed #14850 -- Cleaned up duplicate code in admin formset handling.Tim Graham
Thanks apollo13 for the report and review.
2013-07-29Deprecated django.utils.importlibClaude Paroz
This was a shim for pre-Python 2.7 support.