Skip to content

Commit 5414d82

Browse files
author
roniahmadi
committed
update black
1 parent f61b9d0 commit 5414d82

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

apidata/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
UserAuthToken,
99
UserViewSet,
1010
)
11+
from apidata.viewsets.distric_viewset import DistricViewSet
1112
from apidata.viewsets.produks_viewset import (
1213
GambarProdukViewset,
1314
KategoriViewset,
1415
ProdukViewSet,
1516
TipeProdukViewset,
16-
WarnaProdukViewset
17+
WarnaProdukViewset,
1718
)
1819
from apidata.viewsets.provinsi_viewset import ProvinsiViewSet
1920
from apidata.viewsets.regency_viewset import RegencyViewSet
20-
from apidata.viewsets.distric_viewset import DistricViewSet
2121
from apidata.viewsets.slides_viewset import SlidesViewSet
2222
from apidata.viewsets.stores_viewset import UserStoreAddressViewset, UserStoreViewset
2323
from apidata.viewsets.ulasan_viewset import UlasanViewSet

apidata/viewsets/distric_viewset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from rest_framework import viewsets, filters
1+
from django_filters.rest_framework import DjangoFilterBackend
2+
from rest_framework import filters, viewsets
23

34
from apidata.serializers.distric_serializer import DistricSerializer
4-
from django_filters.rest_framework import DjangoFilterBackend
55
from master.models import Distric
66

77

apidata/viewsets/provinsi_viewset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from rest_framework import viewsets, filters
1+
from django_filters.rest_framework import DjangoFilterBackend
2+
from rest_framework import filters, viewsets
23

34
from apidata.serializers.provinsi_serializer import ProvinsiSerializer
4-
from django_filters.rest_framework import DjangoFilterBackend
55
from master.models import Provinsi
66

77

apidata/viewsets/regency_viewset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from rest_framework import viewsets, filters
1+
from django_filters.rest_framework import DjangoFilterBackend
2+
from rest_framework import filters, viewsets
23

34
from apidata.serializers.regency_serializer import RegencySerializer
4-
from django_filters.rest_framework import DjangoFilterBackend
55
from master.models import Regency
66

77

frontend/urls.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from frontend.views.add_to_cart_view import AddToCart
55
from frontend.views.alamat_toko_delete_view import DeleteAlamatToko
66
from frontend.views.alamat_toko_view import AlamatToko
7-
from frontend.views.profile.alamat_user_view import AlamatUser
87
from frontend.views.alamt_toko_tambah_view import AlamatTokoTambah
98
from frontend.views.approve_view import Approve
109
from frontend.views.archive_barang_view import ArchiveBarang
@@ -33,10 +32,11 @@
3332
from frontend.views.payments_cart_view import PaymentsCart
3433
from frontend.views.privacyandpolicy_view import PrivacyAndPolicy
3534
from frontend.views.produk_view import Produks
36-
from frontend.views.profile_delete_detail_view import DeleteDetailProfile
37-
from frontend.views.profile_detail_address_view import DetailProfileAddressMain
35+
from frontend.views.profile.alamat_user_view import AlamatUser
3836
from frontend.views.profile.profile_alamat_view import ProfileAlamat
3937
from frontend.views.profile.profile_edit_view import ProfileEdit
38+
from frontend.views.profile_delete_detail_view import DeleteDetailProfile
39+
from frontend.views.profile_detail_address_view import DetailProfileAddressMain
4040
from frontend.views.profile_view import Profile
4141
from frontend.views.promo_view import Promo
4242
from frontend.views.save_token_views import SaveToken

frontend/views/profile/profile_alamat_view.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
from django.utils.decorators import method_decorator
55
from django.views.decorators.csrf import csrf_exempt
66

7-
from profiles.models import UserProfile, UserProfileAddress
8-
97
from frontend.views.base_view import FrontPage
8+
from profiles.models import UserProfile, UserProfileAddress
109

1110

1211
@method_decorator(csrf_exempt, name="dispatch")

frontend/views/profile/profile_edit_view.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
from django.contrib import messages
12
from django.contrib.auth.decorators import login_required
23
from django.shortcuts import redirect, render
34
from django.utils.decorators import method_decorator
45
from django.views.decorators.csrf import csrf_exempt
5-
from django.contrib import messages
6-
from frontend.view_helper import translater
7-
8-
from profiles.models import LangSupport
96

7+
from frontend.view_helper import translater
108
from frontend.views.base_view import FrontPage
9+
from profiles.models import LangSupport
1110

1211

1312
@method_decorator(csrf_exempt, name="dispatch")
@@ -33,6 +32,8 @@ def post(self, request):
3332
models.image_profile = request.FILES.get("gambars")
3433
models.save()
3534
languagescode = request.user.languages.code if request.user.languages else "en"
36-
message = translater(languagescode, "Sukses Menyimpan Profil", "Sukses Menyimpan Profil")
35+
message = translater(
36+
languagescode, "Sukses Menyimpan Profil", "Sukses Menyimpan Profil"
37+
)
3738
messages.success(request, message)
3839
return redirect("/profiles/edit")

0 commit comments

Comments
 (0)