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 have a flat table with only one row, which represent the settings of my app.
this is the declaration:
class SettingsFormSetView(ModelFormSetView):
model = Setting
fields = ['profile', 'addmonitored', 'seasonfolders']
template_name = 'settings.html'
factory_kwargs = {'extra': 0}
i have another field in the table called "page" which is updated in one other place:
page -= 2
S = Setting.objects.get(pk=1)
S.page = page
S.save()
So nothing wrong there, it works. I can open the form, change values, the page works as intended. All other references to the Settings table are "get" only.
But sometimes suddenly the table row is empty and i cannot figure out why?
The text was updated successfully, but these errors were encountered:
faulander
changed the title
ModelFormSetView "sometimes" deleted data?
ModelFormSetView "sometimes" deletes row?
Jan 27, 2020
i have a flat table with only one row, which represent the settings of my app.
this is the declaration:
i have another field in the table called "page" which is updated in one other place:
So nothing wrong there, it works. I can open the form, change values, the page works as intended. All other references to the Settings table are "get" only.
But sometimes suddenly the table row is empty and i cannot figure out why?
The text was updated successfully, but these errors were encountered: