~ubuntu-branches/ubuntu/vivid/horizon/vivid

« back to all changes in this revision

Viewing changes to horizon/forms/views.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-03-30 11:12:29 UTC
  • mfrom: (0.14.1) (0.12.2) (76.1.7 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20150330111229-08du2zlqf9khi4k5
Tags: 1:2015.1~b3-0ubuntu1
* New upstream milestone release:
  - d/control: All version requirements with upstream, drop dependency
    on lockfile.
  - Refresh xstatic assets.
  - d/p/*: Refresh.
* d/pydist-overrides: Add overrides for oslo packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from django.conf import settings
19
19
from django import http
20
20
from django.utils.translation import ugettext_lazy as _
21
 
from django.views import generic
22
21
 
23
22
from horizon import exceptions
 
23
from horizon import views
24
24
 
25
25
 
26
26
ADD_TO_FIELD_HEADER = "HTTP_X_HORIZON_ADD_TO_FIELD"
77
77
        return context
78
78
 
79
79
 
80
 
class ModalFormView(ModalBackdropMixin, ModalFormMixin, generic.FormView):
 
80
class ModalFormView(ModalBackdropMixin, ModalFormMixin, views.HorizonFormView):
81
81
    """The main view class from which all views which handle forms in Horizon
82
82
    should inherit. It takes care of all details with processing
83
83
    :class:`~horizon.forms.base.SelfHandlingForm` classes, and modal concerns