Django-fobi

Latest version: v0.19.9

Safety actively analyzes 688896 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 32

0.19.3

------
2022-08-08

- Minor fixes in the `rich_text` plugin (`bleach` related).
- Minor fixes and clean up in docs.

0.19.2

------
2022-07-14

- 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

- Added class-based view for Dashboard.

0.19

----
2022-07-11

- 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:

.. code-block:: python

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:

.. code-block:: python

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:

.. code-block:: python

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

- Tested against Python 3.9, Django 3.2 and 4.0.

.. note::

Release dedicated to my dear son, Tigran, who turned 10 recently.

0.17.1

------
2021-01-25

.. note::

Release dedicated to defenders of Armenia and Artsakh (Nagorno Karabakh)
and all the victims of Turkish and Azerbaijani aggression.

- Replace outdated `simplejson` with `json`.

Page 2 of 32

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.