summaryrefslogtreecommitdiff
path: root/django/contrib
AgeCommit message (Collapse)Author
2014-03-18Made a test app label unique.Florian Apolloner
2014-03-15Remove u prefixes, skip test unless spatial db.Marc Tamlyn
Refs #22001, d22b291890c1736a40c0ad97448c7318df2eebb2
2014-03-14Fixed #22001 -- Ensure db_type is respected.Marc Tamlyn
db_parameters should respect an already existing db_type method and return that as its type string. In particular, this was causing some fields from gis to not be generated. Thanks to @bigsassy and @blueyed for their work on the patch. Also fixed #22260
2014-03-13Simplified implementation of collectstatic command.Baptiste Mispelon
Since d2e242d16c6dde6f4736086fb38057424bed3edb made isinstance() calls work correctly on LazyObject, we can simplify the implementation of is_local_storage added in 7e27885c6e7588471fd94a4def16b7081577bdfc.
2014-03-11Tweak password admin change form view context. Refs #21293.Ramiro Morales
2014-03-11Fixed #21293 -- Adjusted admin header CSS to fix admin password reset template.Tim Graham
By removing the absolute positioning of the usertools div and using float positioning, the #header div will expand based on the height of its content. Thanks EvilDMP for the report.
2014-03-09Prevented admin from importing auth.User.Aymeric Augustin
Since we don't enforce order between apps, root packages of contrib apps cannot import models from unrelated apps. Fix #22005, refs #21719.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-08Fixed #22034 -- Added a specific set of relation checks for ↵Russell Keith-Magee
GenericInlineModelAdmin. Thanks to jwa for the report.
2014-03-06Fixed #22070 -- Changed verbose_name for apps in django.contrib to use title ↵James Jenkins
case Thanks bendavis78 for the report.
2014-03-06Fixed issues and added new scripts to urlify.jsBaptiste Mispelon
Added the following scripts: * Lithuanian (thanks to petraszd for the patch) * Serbian (thanks to offy) * Azerbajani (thanks to Ali Ismayilov) Fixed the following issues: * In Polish character map, some uppercase letters were converted to a lowercase ascii equivalent. * The letter Y with a diaeresis had a lowercase version but no uppercase. The code was also simplified and cleaned up: * Use of `var` statements everywhere * Systematic use of semicolons * Proper looping over arrays and objects. Thanks to @oinopion for his help in getting the javascript into proper shape. Fixes #8561, #11035.
2014-03-05Fixed #22207 -- Added support for GenericRelation reverse lookupsGabe Jackson
GenericRelation now supports an optional related_query_name argument. Setting related_query_name adds a relation from the related object back to the content type for filtering, ordering and other query operations. Thanks to Loic Bistuer for spotting a couple of important issues in his review.
2014-03-04Cleaned up a repr() hack that caused problems on Python3.Russell Keith-Magee
2014-03-03Fixed #16727 -- Added protocol-relative URL support to ↵Thomas Sorrel
contenttypes.views.shortcut.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-03-03Fixed #22135 -- Added ModelAdmin.get_changeform_initial_data().Greg Chapple
Allows custom behavior for setting initial form data in ModelAdmin. By default, initial data is set via GET params. The new method allows this behavior to be overridden. Thanks egasimus for the suggestion.
2014-03-03Edited model check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Edited contrib.sites check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Cleanup of contrib.contenttypes check messages.Russell Keith-Magee
2014-03-03Edited contrib.auth check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Edited contrib.admin check messages for grammar and consistency.Russell Keith-Magee
2014-03-01Fixed #22137 -- Made Widget.is_hidden a read-only propertyClaude Paroz
Thanks django at patjack.co.uk for the report and the review.
2014-02-23Allowed some auth tests to be run independentlyClaude Paroz
2014-02-22Fixed #22120 -- Documented persistent activation of languages and cleaned up ↵Erik Romijn
language session key use
2014-02-22Added tests and minified javascript missing in ↵Bas Peschier
83a3add4bed8d8d49f93b30c817c66908b0a26ba. Refs #22038.
2014-02-18Fixed #21790 -- Removed reliance on an assert in auth.get_user().Tim Graham
Thanks matklad for the report.
2014-02-18flake8 fixes (unused imports and variables).Tim Graham
2014-02-18Fixed broken tests when running with a non-TTY stdin.Baptiste Mispelon
2014-02-18Removed BaseCommand.stdin introduced in ↵Baptiste Mispelon
116d39842dab2569013856e9f3701a7cb6554f09. This option is not actually very useful in the general case because it doesn't override sys.stdin. It's still marginally useful for testing some features of the createsuperuser command so it was moved there. This commit also makes the detection of a TTY in createsuperuser a bit more robust, after a suggestion of appolo13.
2014-02-18Consolidated all tests for createsuperuser in the same TestCase.Baptiste Mispelon
2014-02-17Fixed #7423 -- Skip superuser creation when not running in a TTY.Baptiste Mispelon
Thanks to trac user galaxy4sale for the original report and to AeroNotix for the patch.
2014-02-15Split line and added indentation for better readability.Aleksander Budzinski
2014-02-15Fixed some flake8 errors from recent commits.Tim Graham
2014-02-15Fixed typo in comment.Rodolfo Carvalho
2014-02-15Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.Aaron France
Flatten a level of sublists before checking for duplicate fields. When given sublists such as: ```python class FooAdmin(admin.ModelAdmin): fields = ('one', ('one', 'two')) ``` The previous code did not correctly detect the duplicated 'one' field. Thanks to jwa for the report.
2014-02-15Fixed typo in test docstring.Rodolfo Carvalho
2014-02-14Fixed #21924 -- Added the ability to specify a reverse order for ↵Klemens Mantzos
admin_order_field. Thanks Klemens Mantzos for the report and initial patch.
2014-02-13Removed _actions_icnt declaration from local scope in admin JS.Bas Peschier
Commit 4523fcd introduces _actions_icnt to the local scope, which overrides the value set in the HTML. The admin would incorrectly show selected rows in a change list as "1 of undefined selected".
2014-02-13Fixed #21064 -- Refactored common logic in ModelAdmin.add_view and change_view.Adam Avramov
2014-02-12Reworked the detection of local storages for the collectstatic command.Loic Bistuer
Before 4befb30 the detection was broken because we used isinstance against a LazyObject rather than against a Storage class. That commit fixed it by looking directly at the object wrapped by LazyObject. This could however be a problem to anyone who subclasses the collectstatic management Command and directly supplies a Storage class. Refs #21581.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
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-10Fixed #21996 -- Used proper encoding for GeoIP contentClaude Paroz
Thanks Florent Messa for the report.
2014-02-10Fixed #21371 -- Added the block.super to admin bodyclass blocks.julien 'pouete' Godin
Thanks Keryn Knight for the report.
2014-02-10Fixed #21994 -- Added form_dict argument to calls of WizardView.done()Julian Wachholz
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-09Removed unused import in humanize tests.Tim Graham
2014-02-09Fixed #21992: Skipped test when pytz is missing.Adam Avramov
The test fails on Windows when pytz is not installed.
2014-02-09Fixed #21382 - Added "has_original" to stacked inlines.Ryan Kaskel
Report and original patch from jrief.
2014-02-09Fixed #21771 -- Made log_deletion consistent with other log methods.Alasdair Nicol
Thanks Keryn Knight for the report.
2014-02-09Fixed #20780 -- Get rid of stale symlinks when using collectstatic.Jannis Leidel
Thanks to John Giannelos for the initial patch.
2014-02-09Fixed #19879 -- Have 'findstatic' says on which directories it searched the ↵Vajrasky Kok
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.