dzhuang / django-galleryfield

Django GalleryField with AJAX form widgets for multiple images upload with progress bar and arbitrarily ordering.
MIT License
34 stars 6 forks source link

Added two_fields_in_one_model demo. #62

Open dzhuang opened 6 months ago

dzhuang commented 6 months ago

@phoebebright I tried to used your code to create another demo app which address your concern. However I'm now stuck at make it work since I didn't find the view code which render the gallery in the code you provided at #59 . Can you add more code here? FYI, the new demo name is demo_multiple_fields_1_model.

sphrlbd commented 6 months ago

Sure galeryfiled test.zip

I didn't write the views, only used it on admin panel, and after I upload one image it will be shown on both field and uploaded to MyImage2

sphrlbd commented 6 months ago

But i see a new problem image

sphrlbd commented 6 months ago

If you want, we can contact on Discord or something else

dzhuang commented 6 months ago

@sphrlbd I've updated the code, and I can now understand the issue you proposed.

dzhuang commented 6 months ago

Hi, @sphrlbd . I think I've fixed the bug (in new version v2.2.0). Can you switch to this Branch to see if it works as expected (in admin)? Thanks.

sphrlbd commented 6 months ago

Yeah, I'll test it. Thanks

sphrlbd commented 6 months ago

It fixed thanks