add: cors header and ssl proxy for swagger

This commit is contained in:
behruz-dev
2025-08-26 14:41:20 +05:00
parent 0a996bfe16
commit 9dc07cb500
5 changed files with 71 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
from modeltranslation import translator
from core.apps.orders.models import Order
@translator.register(Order)
class OrderTranslation(translator.TranslationOptions):
fields = [
'name', 'location'
]