django_blog/blog/forms.py
2017-12-08 00:56:38 +03:00

12 lines
238 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',)