django_blog/blog/forms.py
2017-10-29 13:40:42 +03:00

12 lines
227 B
Python

# -*- coding: utf-8 -*-
from django import forms
from .models import Post
from taggit.forms import TagWidget
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('title', 'text', 'tags',)