newmediamonitoring/polls/forms.py

27 lines
519 B
Python
Raw Normal View History

2020-09-03 09:46:04 +00:00
from django import forms
from dashboard.models import Weixin, Weibo, Toutiao, Qita
class WeixinImageForm(forms.ModelForm):
class Meta:
model = Weixin
fields = ['image', ]
class WeiboImageForm(forms.ModelForm):
class Meta:
model = Weibo
fields = ['image', ]
class ToutiaoImageForm(forms.ModelForm):
class Meta:
model = Toutiao
fields = ['image', ]
class QitaImageForm(forms.ModelForm):
class Meta:
model = Qita
fields = ['image', ]