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'm trying to use the module with an inlineformset_factory, my settings are as as follow:
models.py
class Products(models.Model):
...
class Product_Image(models.Model):
product = models.ForeignKey('Products', on_delete=models.CASCADE)
image = models.ImageField(null=True, upload_to=...)
forms.py
class ProductForm(forms.ModelForm):
...
class Product_ImageForm(forms.ModelForm):
image = CroppieField()
class Meta:
model = Product_Image
fields = '__all__'
ProductInlineFormSet = inlineformset_factory(Products, Product_Image,form=Product_ImageForm)
What I have when I open the page of the create view is a blank widget that wherever I upload an image does not update to crop the current image, like it would happen if it was in a normal form. I tried using a normal form and it worked perfectly but that is not my objective. It would be nice if in the future you added support to formsets and such.
The text was updated successfully, but these errors were encountered:
I'm trying to use the module with an inlineformset_factory, my settings are as as follow:
models.py
forms.py
views.py
template
What I have when I open the page of the create view is a blank widget that wherever I upload an image does not update to crop the current image, like it would happen if it was in a normal form. I tried using a normal form and it worked perfectly but that is not my objective. It would be nice if in the future you added support to formsets and such.
The text was updated successfully, but these errors were encountered: