Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(0)  |  Derive(6)  |  Import(1)

src/d/j/django-feedbrater-0.9.6/feeds/views.py   django-feedbrater(Download)
from feeds.forms import FeedUpdateForm, CategoryUpdateForm
 
from feeds.mixins import LoginRequiredMixin, PermissionRequiredMixin, google_required
 
class BraterView(TemplateView):
class FeedUpdateView(LoginRequiredMixin, UpdateView):
    """
    Update a particular feed
    """
    form_class = FeedUpdateForm
class FeedDeleteView(LoginRequiredMixin, DeleteView):
    """
    Delete a particular feed
    """
    model = Feed
 
    def get_success_url(self):
        return reverse('planet:feed-home')
 
class FeedRefreshView(LoginRequiredMixin, RedirectView):
class CategoryUpdateView(LoginRequiredMixin, UpdateView):
    """
    Update a particular Category
    """
    form_class = CategoryUpdateForm