https://github.com/SuziKim/DCCW
Tip revision: b161e711e3345275bbd677dcc801eb80a4c690a7 authored by Suzi Kim on 18 June 2022, 04:51:03 UTC
Remove demo URL
Remove demo URL
Tip revision: b161e71
forms.py
from django import forms
from dccw.models import ImageRecoloringModel
class ImageRecoloringForm(forms.ModelForm):
class Meta:
model = ImageRecoloringModel
fields = ["source_image",]
labels = {
"source_image": "",
}
widgets = {
"source_image": forms.FileInput(attrs={'class': 'w-full flex-shrink-0 bg-indigo-500 hover:bg-indigo-700 border-indigo-500 hover:border-indigo-700 text-sm border-4 text-white py-1 px-2 rounded'}),
}