-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to save inline models with a FileField and "sortable" enabled. #240
Comments
I just tried adding FileField, choose file, hit save and it worked for me. image = models.FileField(upload_to='images', null=True, blank=True) Are you sure this isn't file upload or another problem?
|
When using StackedInline, the Here's my test repo: https://github.com/jfk-urbandaddy/suit_debug/commits/master Would you see if you can reproduce locally? |
Thanks. Your test repo helped me reproduce the problem.
|
Thanks for looking into this. While I'm now able to upload multiple files, the ordering isn't persistent. If I use Suit's arrows after multiple files have been uploaded, after saving, the order resets to the original upload order. |
Could you please try now, should be fixed in latest develop. |
All good. Thanks! |
Introducing a FileField into an inline that uses Django Suit's "sortable" functionality seems to break saving the inline object. I'm seeing "Please correct the error below." when selecting a file to upload and hitting "Save". The problem doesn't occur when the FileField is swapped out for a CharField, for example, and it also goes away when "sortable" isn't used.
suit_debug/models.py
suit_debug/admin.py
Django==1.5.8
django-suit==0.2.8
FWIW, we paid for the "unlimited commercial" license and like it very much so far.
The text was updated successfully, but these errors were encountered: