--- a/ProjectDjangoTagsMenu/DjangoTagInputDialog.py Wed Mar 08 19:32:30 2017 +0100 +++ b/ProjectDjangoTagsMenu/DjangoTagInputDialog.py Tue Mar 28 19:27:02 2017 +0200 @@ -67,7 +67,7 @@ return tuple(data) @staticmethod - def getText(parent, title, labels, defaults=[]): + def getText(parent, title, labels, defaults=None): """ Public static method to create the dialog and return the entered data. @@ -80,6 +80,9 @@ (tuple of string) and a flag indicating the acceptance state (boolean) """ + if defaults is None: + defaults = [] + dlg = DjangoTagInputDialog(labels, defaults, parent) dlg.setWindowTitle(title) if dlg.exec_() == QDialog.Accepted: