clean code and some .env update
This commit is contained in:
+2
-2
@@ -21,8 +21,8 @@ API_DOMAIN = 'api.heymlz.com'
|
||||
SITE_TITLE = 'فروشگاه هی ملز'
|
||||
SITE_HEADER = 'فروشگاه هی ملز'
|
||||
# jwt token configs
|
||||
ACCESS_TOKEN_LIFETIME = 5000
|
||||
REFRESH_TOKEN_LIFETIME = 5000
|
||||
ACCESS_TOKEN_LIFETIME = 1
|
||||
REFRESH_TOKEN_LIFETIME = 5
|
||||
|
||||
SMS_API_KEY = ''
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class OrderSerializer(serializers.ModelSerializer):
|
||||
|
||||
def get_count(self, obj):
|
||||
return obj.items.all().count()
|
||||
|
||||
|
||||
def get_images(self, obj):
|
||||
image_list = [
|
||||
self.context.get('request').build_absolute_uri(image.image.url)
|
||||
|
||||
Reference in New Issue
Block a user