from django.urls import reverse_lazy
from django.views.generic import CreateView, ListView, DetailView

from .models import Post


class PostCreateView(CreateView):
    model = Post
    fields = ('title', 'content')
    success_url = reverse_lazy('index')


class PostListView(ListView):
    model = Post


class PostDetailView(DetailView):
    model = Post

176a4b48fa34583cd8cd740486b23d11cc840f4c
<mask token>


class PostListView(ListView):
    model = Post


class PostDetailView(DetailView):
    model = Post

<mask token>


class PostCreateView(CreateView):
    <mask token>
    <mask token>
    <mask token>


class PostListView(ListView):
    model = Post


class PostDetailView(DetailView):
    model = Post

<mask token>


class PostCreateView(CreateView):
    model = Post
    fields = 'title', 'content'
    success_url = reverse_lazy('index')


class PostListView(ListView):
    model = Post


class PostDetailView(DetailView):
    model = Post

from django.urls import reverse_lazy
from django.views.generic import CreateView, ListView, DetailView
from .models import Post


class PostCreateView(CreateView):
    model = Post
    fields = 'title', 'content'
    success_url = reverse_lazy('index')


class PostListView(ListView):
    model = Post


class PostDetailView(DetailView):
    model = Post

from django.urls import reverse_lazy
from django.views.generic import CreateView, ListView, DetailView

from .models import Post


class PostCreateView(CreateView):
    model = Post
    fields = ('title', 'content')
    success_url = reverse_lazy('index')


class PostListView(ListView):
    model = Post


class PostDetailView(DetailView):
    model = Post
