Source code for shoop.admin.modules.contact_groups.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.core.urlresolvers import reverse_lazy
from django.db.transaction import atomic
from shoop.admin.form_part import FormPartsViewMixin, SaveFormPartsMixin
from shoop.admin.toolbar import get_default_edit_toolbar
from shoop.admin.utils.views import CreateOrUpdateView
from shoop.core.models import ContactGroup
from .forms import ContactGroupBaseFormPart, ContactGroupMembersFormPart