File tree 7 files changed +18
-18
lines changed
7 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 8
8
UserAuthToken ,
9
9
UserViewSet ,
10
10
)
11
+ from apidata .viewsets .distric_viewset import DistricViewSet
11
12
from apidata .viewsets .produks_viewset import (
12
13
GambarProdukViewset ,
13
14
KategoriViewset ,
14
15
ProdukViewSet ,
15
16
TipeProdukViewset ,
16
- WarnaProdukViewset
17
+ WarnaProdukViewset ,
17
18
)
18
19
from apidata .viewsets .provinsi_viewset import ProvinsiViewSet
19
20
from apidata .viewsets .regency_viewset import RegencyViewSet
20
- from apidata .viewsets .distric_viewset import DistricViewSet
21
21
from apidata .viewsets .slides_viewset import SlidesViewSet
22
22
from apidata .viewsets .stores_viewset import UserStoreAddressViewset , UserStoreViewset
23
23
from apidata .viewsets .ulasan_viewset import UlasanViewSet
Original file line number Diff line number Diff line change 1
- from rest_framework import viewsets , filters
1
+ from django_filters .rest_framework import DjangoFilterBackend
2
+ from rest_framework import filters , viewsets
2
3
3
4
from apidata .serializers .distric_serializer import DistricSerializer
4
- from django_filters .rest_framework import DjangoFilterBackend
5
5
from master .models import Distric
6
6
7
7
Original file line number Diff line number Diff line change 1
- from rest_framework import viewsets , filters
1
+ from django_filters .rest_framework import DjangoFilterBackend
2
+ from rest_framework import filters , viewsets
2
3
3
4
from apidata .serializers .provinsi_serializer import ProvinsiSerializer
4
- from django_filters .rest_framework import DjangoFilterBackend
5
5
from master .models import Provinsi
6
6
7
7
Original file line number Diff line number Diff line change 1
- from rest_framework import viewsets , filters
1
+ from django_filters .rest_framework import DjangoFilterBackend
2
+ from rest_framework import filters , viewsets
2
3
3
4
from apidata .serializers .regency_serializer import RegencySerializer
4
- from django_filters .rest_framework import DjangoFilterBackend
5
5
from master .models import Regency
6
6
7
7
Original file line number Diff line number Diff line change 4
4
from frontend .views .add_to_cart_view import AddToCart
5
5
from frontend .views .alamat_toko_delete_view import DeleteAlamatToko
6
6
from frontend .views .alamat_toko_view import AlamatToko
7
- from frontend .views .profile .alamat_user_view import AlamatUser
8
7
from frontend .views .alamt_toko_tambah_view import AlamatTokoTambah
9
8
from frontend .views .approve_view import Approve
10
9
from frontend .views .archive_barang_view import ArchiveBarang
33
32
from frontend .views .payments_cart_view import PaymentsCart
34
33
from frontend .views .privacyandpolicy_view import PrivacyAndPolicy
35
34
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
38
36
from frontend .views .profile .profile_alamat_view import ProfileAlamat
39
37
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
40
40
from frontend .views .profile_view import Profile
41
41
from frontend .views .promo_view import Promo
42
42
from frontend .views .save_token_views import SaveToken
Original file line number Diff line number Diff line change 4
4
from django .utils .decorators import method_decorator
5
5
from django .views .decorators .csrf import csrf_exempt
6
6
7
- from profiles .models import UserProfile , UserProfileAddress
8
-
9
7
from frontend .views .base_view import FrontPage
8
+ from profiles .models import UserProfile , UserProfileAddress
10
9
11
10
12
11
@method_decorator (csrf_exempt , name = "dispatch" )
Original file line number Diff line number Diff line change
1
+ from django .contrib import messages
1
2
from django .contrib .auth .decorators import login_required
2
3
from django .shortcuts import redirect , render
3
4
from django .utils .decorators import method_decorator
4
5
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
9
6
7
+ from frontend .view_helper import translater
10
8
from frontend .views .base_view import FrontPage
9
+ from profiles .models import LangSupport
11
10
12
11
13
12
@method_decorator (csrf_exempt , name = "dispatch" )
@@ -33,6 +32,8 @@ def post(self, request):
33
32
models .image_profile = request .FILES .get ("gambars" )
34
33
models .save ()
35
34
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
+ )
37
38
messages .success (request , message )
38
39
return redirect ("/profiles/edit" )
You can’t perform that action at this time.
0 commit comments