imagehost/imagehosting/forms.py

16 lines
299 B
Python
Raw Normal View History

2017-09-27 13:35:32 +03:00
# -*- coding: utf-8 -*-
from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('name', 'file')
class DeleteForm(forms.ModelForm):
class Meta:
model = Post
fields = []