Skip to content

Releases: barseghyanartur/django-fobi

0.19.9-2023-07-11

11 Jul 20:54
Compare
Choose a tag to compare
  • Added email_repeat plugin.

0.19.8-2023-01-30

30 Jan 23:18
Compare
Choose a tag to compare
  • Method fobi.contrib.plugins.form_handlers.db_store.base.DBStoreHandlerPlugin.run now returns created fobi.contrib.plugins.form_handlers.db_store.models.SavedFormDataEntry.

0.19.7-2022-12-21

20 Dec 23:35
Compare
Choose a tag to compare
  • Fix incorrect URLs for files in emails.
  • Drop Python 3.6 support.

0.19.6-2022-11-26

28 Nov 23:54
Compare
Choose a tag to compare
  • Tested against Python 3.10 and 3.11. Note that ATM, Python 3.11 tests do pass on SQLite only due to Python 3.11 issue with postgres bindings.
  • Tested against Django 4.1.
  • Drop Python 3.5 support.

0.19.5-2022-11-20

20 Nov 20:28
Compare
Choose a tag to compare
  • Enable accidentally forgotten login-required permission on the Dashboard view.

0.19.2-2022-07-14

14 Jul 20:31
Compare
Choose a tag to compare
  • Make it easier to get initial data for the ViewFormEntry view.
  • Apply black and isort on entire code base.

0.19.1-2022-07-12

11 Jul 22:43
Compare
Choose a tag to compare
  • Added class-based view for Dashboard.

0.19-2022-07-11

11 Jul 21:19
ff44238
Compare
Choose a tag to compare
  • Introduce class based views. Function based views are still supported
    and will be supported until at least 0.23.

    Migration to class based views is simple. Only your project's urls.py
    would change:

      urlpatterns = [
          # ...
          url(r'^fobi/', include('fobi.urls.class_based.view')),
          url(r'^fobi/', include('fobi.urls.class_based.edit')),
          # ...
      ]

To use function based views, simply replace the previous line with:

      urlpatterns = [
          # ...
          url(r'^fobi/', include('fobi.urls.view')),
          url(r'^fobi/', include('fobi.urls.edit')),
          # ...
      ]
  • Class-based permissions (work only in combination with class-based views).

    Example:

      from fobi.permissions.definitions import edit_form_entry_permissions
      from fobi.permissions.generic import BasePermission
      from fobi.permissions.helpers import (
          any_permission_required_func, login_required,
      )

      class EditFormEntryPermission(BasePermission):
      """Permission to edit form entries."""

      def has_permission(self, request, view) -> bool:
          return login_required(request) and any_permission_required_func(
              edit_form_entry_permissions
          )(request.user)

      def has_object_permission(self, request, view, obj) -> bool:
          return login_required(request) and any_permission_required_func(
              edit_form_entry_permissions
          )(request.user) and obj.user == request.user

0.18-2022-06-23

23 Jun 22:43
Compare
Choose a tag to compare
  • Tested against Python 3.9, Django 3.2 and 4.0.
Release dedicated to my dear son, Tigran, who turned 10 recently.

0.17.1-2021-01-25

25 Jan 21:12
Compare
Choose a tag to compare
Release dedicated to defenders of Armenia and Artsakh (Nagorno Karabakh) 
and all the victims of Turkish and Azerbaijani aggression.
  • Replace outdated simplejson with json.