django_blog/blog/forms.py

12 lines
238 B
Python
Raw Normal View History

2017-12-08 00:56:38 +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',)