You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to separate the upload and crop process. First the user should upload the image (CreateView) and is then prompted in the next form to crop the image (UpdateView)
in the second form the user should not be able to upload a new image or change the image -- that's why i try to make a hidden field for the image field:
class updatePhotoForm(forms.ModelForm):
class Meta:
model = Photo
fields = ['image','cropping',]
widgets = {'image': forms.HiddenInput()}
As soon i make the 'image' field hidden, the cropping does not work anymore and shows me an input field with coordinates instead of the cropping window.
Is there a solution to this?
The text was updated successfully, but these errors were encountered:
I try to separate the upload and crop process. First the user should upload the image (CreateView) and is then prompted in the next form to crop the image (UpdateView)
in the second form the user should not be able to upload a new image or change the image -- that's why i try to make a hidden field for the image field:
As soon i make the 'image' field hidden, the cropping does not work anymore and shows me an input field with coordinates instead of the cropping window.
Is there a solution to this?
The text was updated successfully, but these errors were encountered: