imagehost/imagehosting/forms.py
2017-10-10 14:19:27 +03:00

19 lines
301 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 = []