Browse files

GenericView -> View

  • Loading branch information...
1 parent e6e1281 commit 8cbbeb7b36f29a4e37a7adf3a6ea905c7a092440 @bfirsh committed May 27, 2010
View
2 class_based_views/__init__.py
@@ -1,4 +1,4 @@
-from class_based_views.base import GenericView
+from class_based_views.base import View
from class_based_views.list import ListView
from class_based_views.detail import DetailView
from class_based_views.dates import (ArchiveView, YearView, MonthView,
View
4 class_based_views/base.py
@@ -3,9 +3,9 @@
from django.template import RequestContext
from django.utils.translation import ugettext_lazy as _
-class GenericView(object):
+class View(object):
"""
- Parent class for all generic views.
+ Parent class for all views.
"""
def __init__(self, **kwargs):
View
4 class_based_views/detail.py
@@ -1,9 +1,9 @@
import re
from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
from django.http import Http404
-from class_based_views import GenericView
+from class_based_views import View
-class DetailView(GenericView):
+class DetailView(View):
"""
Render a "detail" view of an object.
View
4 class_based_views/edit.py
@@ -1,7 +1,7 @@
from django.http import HttpResponseRedirect
-from class_based_views import GenericView, ListView, DetailView
+from class_based_views import View, ListView, DetailView
-class FormView(GenericView):
+class FormView(View):
def post(self, request, obj, *args, **kwargs):
form = self.get_form(request, obj, *args, **kwargs)
if form.is_valid():
View
4 class_based_views/list.py
@@ -2,9 +2,9 @@
from django.core.exceptions import ImproperlyConfigured
from django.http import Http404
from django.utils.encoding import smart_str
-from class_based_views.base import GenericView
+from class_based_views.base import View
-class ListView(GenericView):
+class ListView(View):
"""
Render some list of objects. This list may be any type via setting
`self.items`, but if it's a queryset set on `self.queryset` then the

0 comments on commit 8cbbeb7

Please sign in to comment.