Skip to content

Commit

Permalink
fix: action types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed May 13, 2023
1 parent 75b9826 commit d74d622
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unfold/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from django.contrib.admin.options import BaseModelAdmin
from django.core.exceptions import PermissionDenied
from django.db.models import Combinable, Model
from django.db.models.expressions import BaseExpression
from django.db.models import Model
from django.db.models.expressions import BaseExpression, Combinable
from django.http import HttpRequest, HttpResponse

from .typing import ActionFunction
Expand All @@ -19,7 +19,7 @@ def action(
) -> ActionFunction:
def decorator(func: Callable) -> ActionFunction:
def inner(
model_admin: BaseModelAdmin[Any],
model_admin: BaseModelAdmin,
request: HttpRequest,
*args: Any,
**kwargs,
Expand Down

0 comments on commit d74d622

Please sign in to comment.