Skip to content

Commit

Permalink
[#173] Add the word view in view files.
Browse files Browse the repository at this point in the history
For clarity and profit.
  • Loading branch information
delano committed Jun 30, 2024
1 parent c298f77 commit 0cd7d05
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions apps/api/afb/urls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
BranchViewSet,
FoodRequestViewSet,
ProfileViewSet,
authtoken,
users,
logout_view,
user_view,
)
from django.conf import settings
from django.contrib import admin as afbcore_admin
Expand All @@ -35,12 +35,12 @@
path("afbadmin/", afbcore_admin.site.urls, name="admin"),
path(
"api/<str:version>/register/",
users.RegisterUserAPIView.as_view(),
user_view.RegisterUserAPIView.as_view(),
name="registration",
),
path(
"api/<str:version>/current_user/",
users.CurrentUserAPIView.as_view(),
user_view.CurrentUserAPIView.as_view(),
name="current_user",
),
path("api/<str:version>/", include(router.urls)),
Expand All @@ -52,7 +52,7 @@
),
path(
"api/<str:version>/authtoken/logout/",
authtoken.LogoutView.as_view(),
logout_view.LogoutView.as_view(),
name="api_token_logout",
),
path(
Expand Down
2 changes: 1 addition & 1 deletion apps/api/afbcore/tests/views/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import uuid

from afbcore.serializers import UserSerializer
from afbcore.views.users import CurrentUserAPIView
from afbcore.views.user_view import CurrentUserAPIView
from django.contrib.auth import get_user_model
from django.test import RequestFactory
from rest_framework import status
Expand Down
4 changes: 2 additions & 2 deletions apps/api/afbcore/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"""

from .branch_viewset import BranchViewSet # noqa: F401
from .food_request import FoodRequestViewSet # noqa: F401
from .food_request_view import FoodRequestViewSet # noqa: F401
from .profile_viewset import ProfileViewSet # noqa: F401
from .users import CurrentUserAPIView, RegisterUserAPIView # noqa: F401
from .user_view import CurrentUserAPIView, RegisterUserAPIView # noqa: F401
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0cd7d05

Please sign in to comment.