django_blog/blog/forms.py

12 lines
227 B
Python
Raw Normal View History

2017-10-29 13:40:42 +03:00
# -*- 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',)