imagehost/imagehosting/forms.py
2017-09-27 14:12:01 +03:00

16 lines
299 B
Python

# -*- 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 = []