You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
512 B

# -*- coding: utf-8 -*-
from forms import LanguageForm, CurrencyForm, IataForm
#custom views
from functions.custom_views import add_object
def language_add(request):
"""
Return LanguageForm and post it on the server
"""
return add_object(request, LanguageForm, 'directories_add.html', '/admin/language/add')
def currency_add(request):
"""
Return CurrencyForm and post it on the server
"""
return add_object(request, CurrencyForm, 'directories_add.html', '/admin/currency/add')