imagehost/imagehosting/forms.py

19 lines
301 B
Python
Raw Normal View History

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