Skip to content

1.4.0

Compare
Choose a tag to compare
@chrisjones-brack3t chrisjones-brack3t released this 04 Mar 23:48
  • Split views.py out into multiple files since it was approaching 1000 LoC.
  • SetHeadlineMixin now accepts headline with ugettext_lazy()-wrapped strings.
  • Fixed a bug where JSONResponseMixin would override the content_type of Django's TemplateView in Django 1.6.
  • Fixed bug in PermissionRequiredMixin where if PermissionRequiredMixin.no_permissions_fail returned a false-y value, the user lacking the permission would pass instead of being denied access.
  • Added doc for how to contribute.
  • Added MessageMixin to allow easier access to Django's contrib.messages messages. FormValidMessageMixin and FormInvalidMessageMixin were updated to use it.
  • Fixed bug in CanonicalSlugDetailMixin to allow it to use custom URL kwargs.
  • Fixed bug in GroupRequiredMixin where superusers were blocked by lack of group memberships.
  • Fixed bug in GroupRequiredMixin which now correctly checks for group membership against a list.
  • Added new StaticContextMixin mixin which lets you pass in static_context as a property of the view.
  • Added new AnonymousRequiredMixin which redirects authenticated users to another view.
  • Added new AllVerbsMixin which allows a single method to response to all HTTP verbs.
  • Provided JSONRequestResponseMixin as a mirror of JsonRequestResponseMixin because we're not PHP.
  • FormValidMessageMixin, FormInvalidMessageMixin, and FormMessagesMixin all allow ugettext_lazy-wrapped strings.
  • Extended PermissionRequiredMixin and MultiplePermissionsRequiredMixin to accept django-guardian-style custom/object permissions.