summaryrefslogtreecommitdiff
path: root/django/contrib
AgeCommit message (Collapse)Author
2013-04-02Modified sitemaps to work with unittest2 discovery.Preston Timmons
2013-04-02Modified messages to work with unittest2 discovery.Preston Timmons
2013-04-02Modified formtools to work with unittest2 discovery.Preston Timmons
2013-04-02Updated flatpages tests for unittest2 discovery.Preston Timmons
2013-04-02Modified admindocs tests to work with unittest2 discovery.Preston Timmons
2013-03-30Remove unnecessary if conditionsAlisson
if obj it None, it's None, there's no need to check it
2013-03-30Fixed #20059 -- Updated humanize tests to force 'en' language setting.matiasb
2013-03-28Fixed spelling errorsGavin Wahl
2013-03-28Fixed spelling of "consistent" in admin/options.pyRocky Meza
2013-03-28Updated translation templatesClaude Paroz
2013-03-28Added Burmese languageClaude Paroz
Thanks to Yhal Htet Aung for the translation work.
2013-03-28Added Ossetic languageClaude Paroz
Thanks to Xwybylty Soslan for the translation work.
2013-03-28Updated translations from TransifexClaude Paroz
Polish, Telugu, Georgian, Azerbaijani, Norwegian Bokmål, Basque, Dutch, Thai, Spanish (Argentina), Afrikaans.
2013-03-27Fixed #20078: don't allow filtering on password in the user admin.Jacob Kaplan-Moss
2013-03-26Fixed #20138 -- Added BCryptSHA256PasswordHasherDonald Stufft
BCryptSHA256PasswordHasher pre-hashes the users password using SHA256 to prevent the 72 byte truncation inherient in the BCrypt algorithm.
2013-03-25Fixed #20121 -- Removed LogEntry.get_admin_url's hard-coded path.Adam Wentz
Updated LogEntry.get_admin_url to use 'reverse' instead of a hard-coded path.
2013-03-25Moved removeChildren to core.jsAndrew Jesaitis
The function removeChildren is a general utility that other functions might want to use. Fixes #4120. Thanks arvin for the initial patch.
2013-03-25Moved cancelEventPropagation into core.jsAndrew Jesaitis
The cancelEventPropagation function is a general utility function that can be reused by other widgets. Refs #4120.
2013-03-25Removed quickElement from calendar.jsAndrew Jesaitis
The function quickElement in calendar.js is a duplicate of the quickElement function in core.js. Refs #4120.
2013-03-24Merge pull request #946 from matiasb/minor-flatpage-translation-fixSimon Charette
Fixed #20117 -- Added missing translation override to fix flatpages test.
2013-03-24Fixed #19385 again, now with real code changesAnssi Kääriäinen
The commit of 266de5f9ae9e9f2fbfaec3b7e4b5fb9941967801 included only tests, this time also code changes included...
2013-03-24Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin
Thanks to the many contributors who updated and improved the patch over the life of this ticket.
2013-03-23Fixed #20117 -- Added missing translation override to fix flatpages test.matiasb
2013-03-23Merge pull request #942 from stephrdev/trac-18000Jannis Leidel
Fixed #18000 -- Moved the code to handle goto requests to an extra WizardView method.
2013-03-23Added some class attributes to pass initial form lists to the WizardView ↵Stephan Jaekel
without the need to add them in the as_view call.
2013-03-23Moved the code to handle goto requests in a extra WizardView method.Stephan Jaekel
2013-03-23Fixed #20048, #20060 -- Modified tests for contrib apps sensitive to custom ↵Russell Keith-Magee
User models. Thanks to matiasb for the report of #20060 and the draft patch for #20048.
2013-03-22Fixed #16350 -- Forced capitalization in template.Aymeric Augustin
This improves rendering in some foreign languages.
2013-03-21Fixed #20084 -- Provided option to validate formset max_num on server.Andrew Gorcester
This is provided as a new "validate_max" formset_factory option defaulting to False, since the non-validating behavior of max_num is longstanding, and there is certainly code relying on it. (In fact, even the Django admin relies on it for the case where there are more existing inlines than the given max_num). It may be that at some point we want to deprecate validate_max=False and eventually remove the option, but this commit takes no steps in that direction. This also fixes the DoS-prevention absolute_max enforcement so that it causes a form validation error rather than an IndexError, and ensures that absolute_max is always 1000 more than max_num, to prevent surprising changes in behavior with max_num close to absolute_max. Lastly, this commit fixes the previous inconsistency between a regular formset and a model formset in the precedence of max_num and initial data. Previously in a regular formset, if the provided initial data was longer than max_num, it was truncated; in a model formset, all initial forms would be displayed regardless of max_num. Now regular formsets are the same as model formsets; all initial forms are displayed, even if more than max_num. (But if validate_max is True, submitting these forms will result in a "too many forms" validation error!) This combination of behaviors was chosen to keep the max_num validation simple and consistent, and avoid silent data loss due to truncation of initial data. Thanks to Preston for discussion of the design choices.
2013-03-20Fixed #19972 -- Fixed overflow issue in admin changelist pages.Florian Apolloner
Thanks to loic84 for the report and patch.
2013-03-19Fixed #16319 -- added SuccessMessageMixin to contrib.messagesPaul Collins
Thanks martinogden for the initial patch and d1ffuz0r for tests.
2013-03-19Merge pull request #931 from ↵Preston Holmes
catalanojuan/fix-admin-log-dependency-on-user-id-field-20088 Fixed #20088 -- Changed get_admin_log not to depend on User id field
2013-03-19Fixed #18003 -- Preserved tracebacks when re-raising errors.konarkmodi
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
2013-03-19Fixed #20088 -- Changed get_admin_log not to depend on User id fieldJuan Catalano
Before this change, the get_admin_log method would expect User model's FK to be named `id`. When changing that FK name, admin/index.html rendering would fail. This includes: * Changed the use of id for the use of pk property. * Added a regression test that fails without the patch. This commit refs #20088.
2013-03-18Fixed #19327 -- Added handling of double login attempts in admin.Deric Crago
Thanks to Krzysztof Jurewicz for initial patch and adupin for tests.
2013-03-17Fixed #19550 -- Made the filtered select widget wider in the admin.Aymeric Augustin
Thanks Claude and Julien for the review.
2013-03-17Stopped using non-standard __globals__ and __code__ attributes.Aymeric Augustin
Some alternative implementations don't have them. Closes #19944.
2013-03-16Fix 20061: remove out of date comment.Baptiste Mispelon
2013-03-15Fixed #20055 -- Add url, email, and number input types to admin CSS.Baptiste Mispelon
2013-03-15Fixed #16110 -- Fixed GeometryField odd behaviour regarding null valuesClaude Paroz
Thanks slinkp for the report and the initial patch.
2013-03-14Fixed #17051 -- Removed some 'invalid' field error messagesClaude Paroz
When the 'invalid' error message is set at field level, it masks the error message raised by the validator, if any.
2013-03-13Fixed #20036 -- Improved GEOS version string parsingClaude Paroz
Thanks chikiro.spam at gmail.com for the report.
2013-03-13Refactored qs.add_q() and utils/tree.pyAnssi Kääriäinen
The sql/query.py add_q method did a lot of where/having tree hacking to get complex queries to work correctly. The logic was refactored so that it should be simpler to understand. The new logic should also produce leaner WHERE conditions. The changes cascade somewhat, as some other parts of Django (like add_filter() and WhereNode) expect boolean trees in certain format or they fail to work. So to fix the add_q() one must fix utils/tree.py, some things in add_filter(), WhereNode and so on. This commit also fixed add_filter to see negate clauses up the path. A query like .exclude(Q(reversefk__in=a_list)) didn't work similarly to .filter(~Q(reversefk__in=a_list)). The reason for this is that only the immediate parent negate clauses were seen by add_filter, and thus a tree like AND: (NOT AND: (AND: condition)) will not be handled correctly, as there is one intermediary AND node in the tree. The example tree is generated by .exclude(~Q(reversefk__in=a_list)). Still, aggregation lost connectors in OR cases, and F() objects and aggregates in same filter clause caused GROUP BY problems on some databases. Fixed #17600, fixed #13198, fixed #17025, fixed #17000, fixed #11293.
2013-03-12Removed unused imports.Aymeric Augustin
One of these functions didn't exist anymore.
2013-03-11Deprecated django.contrib.comments.Jacob Kaplan-Moss
2013-03-11Avoided closing the database connection within a transaction.Aymeric Augustin
Refs #9437.
2013-03-11Ported layermapping for autocommit.Aymeric Augustin
2013-03-11Switched the admin to use @transaction.atomic.Aymeric Augustin
2013-03-11Deprecated transaction.commit/rollback_unless_managed.Aymeric Augustin
Since "unless managed" now means "if database-level autocommit", committing or rolling back doesn't have any effect. Restored transactional integrity in a few places that relied on automatically-started transactions with a transitory API.
2013-03-09Fixed #19171 -- Allowed coordinate transforms with custom SRIDsClaude Paroz
Thanks reidpr at lanl.gov for the report.