Skip to content

Commit 6425e49

Browse files
committed
Bugfix when tagging an object (fixes #589)
1 parent 0a052ec commit 6425e49

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class StringListField(Field):
1818

1919
def _value(self):
2020
if self.data:
21-
return ','.join([d for d in self.data])
21+
return ','.join([str(d) for d in self.data])
2222
else:
2323
return ''
2424

core/web/frontend/observables.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ def advanced(self):
3434
export_templates=ExportTemplate.objects.all())
3535

3636
def create_obj(self, obj, skip_validation):
37+
tags = obj.tags
3738
obj = obj.get_or_create(value=obj.value)
38-
[obj.tag(tag) for tag in obj.tags]
39+
[obj.tag(str(tag)) for tag in tags]
3940
return obj
4041

4142
# override to guess observable type

0 commit comments

Comments
 (0)