add: cors header and ssl proxy for swagger
This commit is contained in:
10
core/apps/orders/translation.py
Normal file
10
core/apps/orders/translation.py
Normal 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'
|
||||
]
|
||||
Reference in New Issue
Block a user