Skip to content

Commit

Permalink
fix: issues where lazy values were used like bools
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Dec 24, 2024
1 parent 076b0e1 commit a454c58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion basxbread/contrib/customforms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def formview_processing(request, form, initial=None, custom_layout=None):
else model.objects.none()
)

if not request.user.has_perm(permissionname(model, "view")):
if not request.user.has_perm(utils.permissionname(model, "view")):
raise PermissionDenied()

view_class = views.AddView
Expand Down
3 changes: 1 addition & 2 deletions basxbread/layout/components/forms/helpers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import htmlgenerator as hg
from django.conf import settings
from django.utils import formats
from django.utils.translation import gettext_lazy as _

import htmlgenerator as hg

from ..button import Button

REQUIRED_LABEL = getattr(settings, "REQUIRED_LABEL", " *")
Expand Down
4 changes: 2 additions & 2 deletions basxbread/layout/components/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

import django_countries.widgets
import django_filters
import htmlgenerator as hg
from _strptime import TimeRE
from basxbread.utils import get_all_subclasses
from django.conf import settings
from django.forms import widgets
from django.urls import reverse
from django.utils import formats
from django.utils.translation import gettext_lazy as _
from phonenumber_field.formfields import PhoneNumberField

import htmlgenerator as hg
from basxbread.utils import get_all_subclasses

from ..button import Button
from ..icon import Icon
Expand Down

0 comments on commit a454c58

Please sign in to comment.