Source code for shoop.admin.modules.sales_units.views.edit
# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from shoop.admin.utils.views import CreateOrUpdateView
from shoop.core.models import SalesUnit
from shoop.utils.multilanguage_model_form import MultiLanguageModelForm
[docs]class SalesUnitEditView(CreateOrUpdateView):
model = SalesUnit
form_class = SalesUnitForm
template_name = "shoop/admin/sales_units/edit.jinja"
context_object_name = "sales_unit"