Skip to content

Commit

Permalink
pagination path changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishwas-py committed Mar 9, 2024
1 parent 14f144e commit 3c1994a
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 18 deletions.
Binary file modified djapy/core/__pycache__/dec.cpython-311.pyc
Binary file not shown.
Binary file added djapy/core/__pycache__/labels.cpython-311.pyc
Binary file not shown.
Binary file added djapy/core/__pycache__/mid.cpython-311.pyc
Binary file not shown.
Binary file added djapy/core/__pycache__/typing_utils.cpython-311.pyc
Binary file not shown.
7 changes: 2 additions & 5 deletions djapy/core/dec.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import importlib
import inspect
import json
from functools import wraps
from typing import Callable, Dict, Type, List

from django.urls import reverse
from pydantic_core import InitErrorDetails
from djapy.schema import Schema

from django.http import HttpRequest, JsonResponse, HttpResponse
from django.http import HttpRequest, JsonResponse
from pydantic import ValidationError, create_model

from .auth import BaseAuthMechanism, base_auth_obj
from .defaults import ALLOW_METHODS_LITERAL, DEFAULT_METHOD_NOT_ALLOWED_MESSAGE, \
DEFAULT_MESSAGE_ERROR
from .pagination.base_pagination import BasePagination
from djapy.pagination.base_pagination import BasePagination
from .parser import ResponseDataParser, RequestDataParser
from .labels import REQUEST_INPUT_SCHEMA_NAME
import logging
Expand Down
7 changes: 0 additions & 7 deletions djapy/core/pagination/__init__.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions djapy/core/typing_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from typing import TypeVar

G_TYPE = TypeVar('G_TYPE')
3 changes: 3 additions & 0 deletions djapy/pagination/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from djapy.pagination.cursor_pagination import CursorPagination

__all__ = ["OffsetLimitPagination", "PageNumberPagination", "BasePagination", "CursorPagination"]
Binary file not shown.
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.db.models import QuerySet
from pydantic import model_validator, conint

from djapy.core.pagination import BasePagination
from djapy.pagination import BasePagination
from djapy.core.typing_utils import G_TYPE
from djapy.schema import Schema

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.db.models import QuerySet
from pydantic import model_validator, conint

from djapy.core.pagination import BasePagination
from djapy.pagination import BasePagination
from djapy.core.typing_utils import G_TYPE
from djapy.schema import Schema

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import math

from typing import Generic, Optional
from typing import Generic

from django.core.paginator import Paginator, EmptyPage
from django.db.models import QuerySet
from pydantic import model_validator

from djapy.core.pagination import BasePagination
from djapy.pagination import BasePagination
from djapy.core.typing_utils import G_TYPE
from djapy.schema import Schema

Expand Down

0 comments on commit 3c1994a

Please sign in to comment.