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
can't "publish" a draft in a snippet with InlinePanel with files #11882
Comments
not sure if i was clear enough: i can save well all the time if i only use publish, i can add a few files first time and save with publish, and i can add more files and saving with publish goes well all times. But if i use save draft then i can't save anymore until i remove the entires and upload again and save with publish, but i want to can save drafts or workflows. thanks |
Might be related to a similar issue for pages: #10814 We generally recommend using Documents to upload files to the CMS. I'm not sure to what extent we support |
i know the common way to handle files is using Documents but my use case have certain constraints about the "meaning" of files in this particular Model. I know that Wagtail focuses on Content and there is natural mind on choosing reosurces as files and images from collections maybe many times. But in my case i have to upload a File once per model to read contents and populate ceraint other models. So, is not useful to endusers handle apart the files in a common place of files, i know that can be used roles to jail access per folder but is not either useful; my use case minds "a file" like any other input for unique usage at a time and not be able to see it across the admin ui outer of the specific object instance only. Please see this video ( https://www.youtube.com/watch?v=8F_V2YSsThI ), is on django admin, not wagtail admin, was a sketchy try but more or less is the thing i'm trying to do: i have to upload one (or many) files, process it using spatial analytics and remote sense things, and then i got a lot of data that i have to save again, once uploaded and saved there is no need to access again to the file so i don't need Documents API, but i will like to have wagtail Revisions and DraftState features to be able to handle data again if a new revisión is made; so, i have to handle files in "direct" way |
then, is there intentions to fix this? |
Issue Summary
I have problem saving files on ParentalKey field when using it with InlinePanel and DraftStateMixin, RevisionMixin togheter
Steps to Reproduce
I have a Snippet Model who extends ClusterableModel, this because i have the need to have a related model to add many Orderable Objects with a File Field:
then, i register a snippet with:
The thing works fine if i save with publish button, but if i save as draft, it saves, but when i try to publish, it throws and error showing "This field is required." error in file field in all entries added on draft
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Technical details
The text was updated successfully, but these errors were encountered: