clean code and some .env update

This commit is contained in:
Parsa Nazer
2025-03-06 21:04:08 +03:30
parent 856acd8623
commit 5de65b921d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 = ''
+1 -1
View File
@@ -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)