imagehost/imagehosting/forms.py
2017-12-12 13:15:45 +03:00

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