Commit 959899f1103fc4705499b3467423b33a32af961a
1 parent
8cd8a2fd
Exists in
master
and in
3 other branches
Adjusting subject tags in replication
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
subjects/views.py
@@ -136,7 +136,7 @@ class SubjectCreateView(CreateView): | @@ -136,7 +136,7 @@ class SubjectCreateView(CreateView): | ||
136 | initial['name'] = subject.name | 136 | initial['name'] = subject.name |
137 | initial['visible'] = subject.visible | 137 | initial['visible'] = subject.visible |
138 | initial['professor'] = subject.professor.all() | 138 | initial['professor'] = subject.professor.all() |
139 | - initial['tags'] = subject.tags.all() | 139 | + initial['tags'] = ", ".join(subject.tags.all().values_list("name", flat = True)) |
140 | initial['init_date'] = subject.init_date | 140 | initial['init_date'] = subject.init_date |
141 | initial['end_date'] = subject.end_date | 141 | initial['end_date'] = subject.end_date |
142 | initial['students'] = subject.students.all() | 142 | initial['students'] = subject.students.all() |