Source code for shoop.admin.modules.product_types.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 django import forms
from shoop.admin.utils.views import CreateOrUpdateView
from shoop.core.models import ProductType
from shoop.utils.multilanguage_model_form import MultiLanguageModelForm
[docs]class ProductTypeEditView(CreateOrUpdateView):
model = ProductType
form_class = ProductTypeForm
template_name = "shoop/admin/product_types/edit.jinja"
context_object_name = "product_type"