summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2015-06-17Fixed #24914 -- Added authentication mixins for CBVsMarkus Holtermann
Added the mixins LoginRequiredMixin, PermissionRequiredMixin and UserPassesTestMixin to contrib.auth as counterparts to the respective view decorators. The authentication mixins UserPassesTestMixin, LoginRequiredMixin and PermissionRequiredMixin have been inspired by django-braces <https://github.com/brack3t/django-braces/> Thanks Raphael Michel for the initial patch, tests and docs on the PR and Ana Balica, Kenneth Love, Marc Tamlyn, and Tim Graham for the review.
2015-06-17Fixed #24829 -- Allowed use of TemplateResponse in view error handlers.ana-balica
2015-06-17Refs #23763 -- Fixed Python 3.5 PendingDeprecationWarning in LazyStream.Tim Graham
Fixed "PendingDeprecationWarning: generator 'LazyStream.read.<locals>.parts' raised StopIteration" per PEP 0479.
2015-06-16Fixed #24948 -- Fixed crash when uploading bitmap images in forms.ImageFieldAndriy Sokolovskiy
2015-06-16Refs #16860 -- Fixed a resource and deprecation warning in password validation.Tim Graham
2015-06-16Fixed #24971 -- Made startapp generate an apps.pyMounir Messelmeni
2015-06-16Sorted reduce methods in migration optimizerMarkus Holtermann
Thanks Tim Graham for the review.
2015-06-16Fixed #24828 -- Allowed migration optimization across AlterFooTogetherMarkus Holtermann
The idea behind this change is, that AlterUniqueTogether, AlterIndexTogether and AlterOrderWithRespectTo can always be moved after an Add/Alter/Rename/RemoveField operation if they don't refer to the respective field and are not empty sets / None. Combined with the optimizations of duplicate AlterUniqueTogether, AlterIndexTogether, and AlterOrderWithRespectTo operations from 128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized in a later round of the optimizer. Thanks Tim Graham for the review.
2015-06-15Fixed #24972 -- Fixed removing unique_together indexes on MySQL.Adam Brenecki
2015-06-15Fixed #24894 -- Added contrib.postgres.functions.TransactionNowAdam Chainz
2015-06-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-06-15Removed django.utils.functional.total_ordering()Tim Graham
2015-06-15Fixed flake8 warnings on Python 3.Tim Graham
2015-06-15Fixed #24912 -- Fixed prefetch_related failure for UUIDField primary keysBrian King
This resolves a problem on databases besides PostgreSQL when using prefetch_related with a source model that uses a UUID primary key.
2015-06-15Corrected to not erroneously mention email as being required.elena
Email field isn't required.
2015-06-14Changed reduce method lookup in migration optimizer to dictMarkus Holtermann
Thanks Andrew Godwin and Simon Charette for the review.
2015-06-14Explicitly imported migration operations in optimizerMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-14Optimized duplicate AlterModelTable/AlterFooTogether/AlterOWRTMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-14Took AlterOrderWithRespectTo into account when optimizing migrationsMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-13Fixed #24890 -- Added warning to collectstatic when static files have ↵Markus Amalthea Magnuson
clashing names
2015-06-13Fixed #24978 -- Escaped special characters in loaddata fixture pathsMoritz Sichert
2015-06-12Refs #24965 -- Added changes from accidentally reverted file for last commit.Moritz Sichert
2015-06-12Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from classMoritz Sichert
2015-06-12Fixed #24963 -- Added File.seekable() on Python 3.Carson Gee
2015-06-11Fixed #24968 -- Removed bad horizontal scrollbar appearing on admin ↵Fabrizio Ettore Messina
changelist page. Appeared in Opera with ModelAdmin.actions=None.
2015-06-11Fixed #24950 -- Added unicode_literals to models.py in app templateMarkus Holtermann
Thanks Tim Graham for the patch
2015-06-11Allowed easier extendability of ChoiceFieldRenderer.TMFGravyHands
2015-06-10Merge pull request #4811 from mthornhill/12685Russell Keith-Magee
Fixed #12685 - Ensure that deserialised model instances honor the same arguments as normal models.
2015-06-10Refs #16860 -- Minor edits and fixes to password validation.Tim Graham
2015-06-10Fix for ticket 12685mick
2015-06-09Fixed #24769 -- Cast optparse verbosity argument to an integer for better ↵Rivo Laks
backwards compatibility. Using `BaseCommand.options_list` makes Django use the legacy optparse parser, which does not set the verbosity attribute correctly. Now the verbosity argument is always cast to int. Regression in 8568638 (#19973). Initial report and patch from blueyed.
2015-06-08Fixed #21927 -- Made application and instance namespaces more distinct.Marten Kenbeek
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
2015-06-08Fixed #24929 -- Allowed permission_required decorator to take any iterableRaphael Michel
2015-06-08Fixed #24796 -- Added a hint on placement of SecurityMiddleware in ↵Marissa Zhou
MIDDLEWARE_CLASSES. Also moved it in the project template.
2015-06-08Made flatatt docstring match realityMatthew Schinckel
The spirit of the docstring was correct, but referred to an outdated version of the function.
2015-06-07Moved jQuery to a vendor/jquery subdirectory.Trey Hunner
2015-06-07Fixed #16860 -- Added password validation to django.contrib.auth.Erik Romijn
2015-06-06Fixed #24915 -- Added stricter session key validationDavid Bannon
Changed _session_key attribute to a property and implemented basic validation in the setter. The session key must be 'truthy' and at least 8 characters long. Otherwise, the value is set to None.
2015-06-06Fixed #24859 -- Made QuerySet.get() with UUIDField raise TypeError on bad value.Cole Maclean
For consistency with AutoField.
2015-06-06Fixed #24922 -- Added system check for templates settingSergei Maertens
If `'loaders'` is present in the `TEMPLATES` options together with `APP_DIRS` set to `True`, the template engine raises an exception. This conflict is now detected by the system check templates.E001.
2015-06-06Fixed #12437 -- Added css_classes to Form._html_output()Markus Amalthea Magnuson
2015-06-06Fixed ImportError message in utils.module_loading.import_string()Tomasz Kontusz
2015-06-06Imported sqlite3 instead of _sqlite3Sagar Mittal
adapt and ProgrammingError are both available on the sqlite3 module. There's no need to import the internal _sqlite3 module.
2015-06-06Fixed #24906 -- Fixed ResolverMatch.app_name for nested namespaces.Marten Kenbeek
Set ResolverMatch.app_name to the full path of nested application namespaces.
2015-06-06Fixed #24910 -- Added createsuperuser support for non-unique USERNAME_FIELDsAlasdair Nicol
Clarified docs to say that a non-unique USERNAME_FIELD is permissable as long as the custom auth backend can support it.
2015-06-06Fixed #23516 -- Added caching of include tag Template objectsMatthew Somerville
This also speeds up for loops that render the same template multiple times.
2015-06-06Fixed #24744 - Fixed relabeled_clone for the TransformAndriy Sokolovskiy
2015-06-06Instead of using DjangoJSONEncoder, use base_field's value_to_string.Matthew Somerville
Note this means the serialization of e.g. IntegerRangeField now has strings for lower and upper, so use to_python when they came back in (same behaviour as ArrayField, hopefully, from where I also got the set_attributes_from_name function).
2015-06-05Fixed #24937 -- fix serialization of Date(Time)RangeField.Matthew Somerville
Use the DjangoJSONEncoder so that datetime and date are encoded appropriately.
2015-06-05Fixed #24862 -- Improved PostGIS database connection error messageSylvain Fankhauser
Thanks brycenesbitt for the patch.