|
|
|
|
@ -112,9 +112,10 @@ class MemberDetail(DetailView): |
|
|
|
|
'staff_form': CompStaff(instance=company), 'found_form': CompFound(instance=company), |
|
|
|
|
'logo_form': CompLogo(instance=company) |
|
|
|
|
} |
|
|
|
|
tags = [{'id': tag.id, 'text': tag.name } for tag in company.tag.all()] |
|
|
|
|
tags = [{'id': str(tag.id), 'text': tag.name } for tag in company.tag.all()] |
|
|
|
|
tag_form = CompTagForm(instance=company) |
|
|
|
|
tag_form.fields['tag'].widget.attrs['data-predifined'] = json.dumps(tags) |
|
|
|
|
tag_form.fields['tag'].widget.attrs['value'] = '' |
|
|
|
|
forms.update({'tag_form': tag_form}) |
|
|
|
|
|
|
|
|
|
lang = get_language() |
|
|
|
|
|