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
we have one Issue with the update from 2.0.x to 2.1.2 in the text fields of the options.
The previous additional_input=True fields are missing and all converted into -----
Expected behaviour / Erwartetes Verhalten
previous additional_input=True should set additional_input='text'
list_options_additional_true= [i.idforiinOption.objects.all() ifi.additional_input]
# to write to .txtfrompathlibimportPath_lst="\n".join(map(str, list_options_additional_true))
Path.cwd.joinpath('option_additional_true_ids.txt').write_text(_lst,encoding='UTF-8')
Keep this list open or copy the values into a .txt
In newly upgraded DB:
# copy the list into# list_options_additional_true = ...# or read from .txt_lst=Path.cwd().joinpath('option_additional_true_ids.txt').read_text(encoding='UTF-8')
list_options_additional_true=list(map(int, _lst.split()))
objs=Option.objects.filter(id__in=list_options_additional_true)
[setattr(i, 'additional_input', 'text') foriinobjs]
Option.objects.bulk_update(objs,['additional_input'])
#done# to see the unique values in DBset(Option.objects.all().values_list('additional_input',flat=True))
The text was updated successfully, but these errors were encountered:
Description / Beschreibung
we have one Issue with the update from 2.0.x to 2.1.2 in the text fields of the options.
The previous additional_input=True fields are missing and all converted into
-----
Expected behaviour / Erwartetes Verhalten
additional_input=True
should setadditional_input='text'
Steps to reproduce / Schritte zum Reproduzieren
[i.id for i in Option.objects.all() if i.additional_input]
[i.id for i in Option.objects.all() if i.additional_input]
is now emptyContext / Kontext
Please state your operating system, the RDMO version, and (if applicable) the browser the error occured in.
References / Verweise
Possible fix from backup
From previous backup DB:
Keep this list open or copy the values into a .txt
In newly upgraded DB:
The text was updated successfully, but these errors were encountered: