imagehost/imagehosting/forms.py

19 lines
319 B
Python
Raw Normal View History

2017-12-12 13:15:45 +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 = []