# Updating a dataset with ModelForm won't save...

**URL:** <https://forum.djangoproject.com/t/updating-a-dataset-with-modelform-wont-save/21846>\
**Category:** Forms & APIs\
**Created:** [June 25, 2023, 12:57pm UTC](https://forum.djangoproject.com/t/updating-a-dataset-with-modelform-wont-save/21846 "2023-06-25T12:57:53Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![doc1977](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/doc1977/32/13416_2.png) [@doc1977](https://forum.djangoproject.com/u/doc1977)\
**Post date:** [July 16, 2023, 7:57am UTC](https://forum.djangoproject.com/t/updating-a-dataset-with-modelform-wont-save/21846/21 "2023-07-16T07:57:28Z")

</div>

The Code is the code i was posting above. If you look at the provided screenshots, then you can see, that I get displayed what i want. All functions as a MultiSelectCheckbox Form. The problem that I have had with saving the form still persists, but meanwhile I found an ugly workaround that does the job for the moment. Next thing I was aware of is, that, (with a field max\_lengt of 100 per function) somehow Django throws a warning, if you check enough functions to get their combined char length larger than 100. As You said, I myself also have no idea, why. The “workaround” here was to use single items like `{{ form.function }}` instead of `{{ form.as_div }}`. Then the warning is not displayed…

edit: The funcionality was not disturbed by the warning, it just looked ugly 😉

[Previous page](https://forum.djangoproject.com/t/updating-a-dataset-with-modelform-wont-save/21846.md?page=1)
