Commit bac4e57eb4e3053cf8b1d33aabe611ed54072b53
1 parent
f343ade6
Exists in
master
and in
2 other branches
Adding topic description in restore
Showing
10 changed files
with
18 additions
and
18 deletions
Show diff stats
backup.json
1 | -[[{"id": 244, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 132, "name": "for"}], "pendencies_resource": [], "indicators": "bulletin/indicators/modelo_indicadores_relevantes_1.xls", "file_content": "bulletin/goals/future_a2WWa1X.xls", "_my_subclass": "bulletin", "name": "Left to lose", "slug": "left-to-lose", "brief_description": "<p>New</p>", "show_window": true, "all_students": true, "visible": true, "order": 7, "create_date": "2017-08-05T15:06:49.032110Z", "last_update": "2017-09-02T01:15:11.078992Z", "content": "<p>Lost </p>"}], [{"id": 6, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 48, "name": "anything"}, {"id": 49, "name": "lsoe"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "Doug", "slug": "doug", "brief_description": "<p>Today</p>", "show_window": true, "all_students": false, "visible": false, "order": 1, "create_date": "2017-01-23T17:36:14.900287Z", "last_update": "2017-01-24T17:33:39.433016Z", "content": "Freaky man"}, {"id": 20, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 69, "name": "noine"}, {"id": 70, "name": "nine"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "Myself", "slug": "myself", "brief_description": "<p>Is up to me</p>", "show_window": false, "all_students": true, "visible": false, "order": 2, "create_date": "2017-01-23T22:59:42.592301Z", "last_update": "2017-01-24T17:34:20.147284Z", "content": "<title>Sold my soul</title><h5>I brought this all <em>upon myself<br>Dont stop me now!!</em></h5>"}, {"id": 42, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 95, "name": "history"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "History goes", "slug": "history-goes", "brief_description": "<p>How</p>", "show_window": false, "all_students": false, "visible": false, "order": 4, "create_date": "2017-01-24T21:57:13.600718Z", "last_update": "2017-01-24T21:57:13.812438Z", "content": "<p>ON</p>"}, {"id": 246, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 133, "name": "peace"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "Mama", "slug": "mama", "brief_description": "", "show_window": true, "all_students": false, "visible": true, "order": 8, "create_date": "2017-08-28T23:29:41.911603Z", "last_update": "2017-08-28T23:29:42.174255Z", "content": "<p>find out where you've been</p>"}], [{"id": 41, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 93, "name": "last"}, {"id": 94, "name": "mistake"}], "pendencies_resource": [{"id": 19, "action": "view", "begin_date": "2017-01-26T22:54:00Z", "end_date": "2017-02-10T22:54:00Z", "limit_date": null}], "file_content": "files/formulariobolsista.doc.docx", "_my_subclass": "filelink", "name": "Secret", "slug": "secret", "brief_description": "<p>Do we create a modern myth?</p>", "show_window": true, "all_students": true, "visible": false, "order": 3, "create_date": "2017-01-24T21:55:44.193797Z", "last_update": "2017-01-24T21:55:44.330406Z"}, {"id": 46, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 100, "name": "just"}, {"id": 101, "name": "game"}], "pendencies_resource": [], "file_content": "files/jutificativa_voto.pdf", "_my_subclass": "filelink", "name": "Personal", "slug": "personal", "brief_description": "<p>Pray All I can do</p><p>Taskani</p>", "show_window": false, "all_students": false, "visible": false, "order": 6, "create_date": "2017-01-25T02:21:38.618190Z", "last_update": "2017-01-25T02:24:26.061727Z"}, {"id": 247, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 130, "name": ""}], "pendencies_resource": [], "file_content": "files/formulariobolsista.docx", "_my_subclass": "filelink", "name": "Starships", "slug": "starships", "brief_description": "", "show_window": false, "all_students": false, "visible": true, "order": 9, "create_date": "2017-09-01T03:15:21.199226Z", "last_update": "2017-09-01T03:15:22.217754Z"}], [{"id": 71, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 123, "name": "wastelands"}, {"id": 124, "name": "disapear"}], "item_goal": [{"id": 6, "description": "Wastelands", "ref_value": 50, "order": 1}, {"id": 7, "description": "Arms with no weapons", "ref_value": 55, "order": 2}], "pendencies_resource": [{"id": 34, "action": "submit", "begin_date": "2017-03-07T20:10:00Z", "end_date": "2017-03-08T20:10:00Z", "limit_date": "2017-03-10T19:10:00Z"}], "_my_subclass": "goals", "name": "Future", "slug": "future", "brief_description": "", "show_window": false, "all_students": true, "visible": true, "order": 6, "create_date": "2017-03-06T20:11:11.156470Z", "last_update": "2017-08-04T14:30:58.202411Z", "presentation": "<p>Stands away</p>", "limit_submission_date": "2017-08-04T00:10:00Z"}]] | ||
2 | \ No newline at end of file | 1 | \ No newline at end of file |
2 | +[[{"id": 244, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 132, "name": "for"}], "pendencies_resource": [], "indicators": "bulletin/indicators/modelo_indicadores_relevantes_1.xls", "file_content": "bulletin/goals/future_a2WWa1X.xls", "_my_subclass": "bulletin", "name": "Left to lose", "slug": "left-to-lose", "brief_description": "<p>New</p>", "show_window": true, "all_students": true, "visible": true, "order": 7, "create_date": "2017-08-05T15:06:49.032110Z", "last_update": "2017-09-02T18:25:26.429883Z", "content": "<p>Lost </p>"}], [{"id": 6, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 48, "name": "anything"}, {"id": 49, "name": "lsoe"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "Doug", "slug": "doug", "brief_description": "<p>Today</p>", "show_window": true, "all_students": false, "visible": false, "order": 1, "create_date": "2017-01-23T17:36:14.900287Z", "last_update": "2017-01-24T17:33:39.433016Z", "content": "Freaky man"}, {"id": 20, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 69, "name": "noine"}, {"id": 70, "name": "nine"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "Myself", "slug": "myself", "brief_description": "<p>Is up to me</p>", "show_window": false, "all_students": true, "visible": false, "order": 2, "create_date": "2017-01-23T22:59:42.592301Z", "last_update": "2017-01-24T17:34:20.147284Z", "content": "<title>Sold my soul</title><h5>I brought this all <em>upon myself<br>Dont stop me now!!</em></h5>"}, {"id": 42, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 95, "name": "history"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "History goes", "slug": "history-goes", "brief_description": "<p>How</p>", "show_window": false, "all_students": false, "visible": false, "order": 4, "create_date": "2017-01-24T21:57:13.600718Z", "last_update": "2017-01-24T21:57:13.812438Z", "content": "<p>ON</p>"}, {"id": 246, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 133, "name": "peace"}], "pendencies_resource": [], "_my_subclass": "webpage", "name": "Mama", "slug": "mama", "brief_description": "", "show_window": true, "all_students": false, "visible": true, "order": 8, "create_date": "2017-08-28T23:29:41.911603Z", "last_update": "2017-08-28T23:29:42.174255Z", "content": "<p>find out where you've been</p>"}], [{"id": 41, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 93, "name": "last"}, {"id": 94, "name": "mistake"}], "pendencies_resource": [{"id": 19, "action": "view", "begin_date": "2017-01-26T22:54:00Z", "end_date": "2017-02-10T22:54:00Z", "limit_date": null}], "file_content": "files/formulariobolsista.doc.docx", "_my_subclass": "filelink", "name": "Secret", "slug": "secret", "brief_description": "<p>Do we create a modern myth?</p>", "show_window": true, "all_students": true, "visible": false, "order": 3, "create_date": "2017-01-24T21:55:44.193797Z", "last_update": "2017-01-24T21:55:44.330406Z"}, {"id": 46, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 100, "name": "just"}, {"id": 101, "name": "game"}], "pendencies_resource": [], "file_content": "files/jutificativa_voto.pdf", "_my_subclass": "filelink", "name": "Personal", "slug": "personal", "brief_description": "<p>Pray All I can do</p><p>Taskani</p>", "show_window": false, "all_students": false, "visible": false, "order": 6, "create_date": "2017-01-25T02:21:38.618190Z", "last_update": "2017-01-25T02:24:26.061727Z"}, {"id": 247, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 130, "name": ""}], "pendencies_resource": [], "file_content": "files/formulariobolsista.docx", "_my_subclass": "filelink", "name": "Starships", "slug": "starships", "brief_description": "", "show_window": false, "all_students": false, "visible": true, "order": 9, "create_date": "2017-09-01T03:15:21.199226Z", "last_update": "2017-09-01T03:15:22.217754Z"}], [{"id": 71, "topic": {"id": 32, "name": "Now Invisble", "slug": "now-invisble", "description": "<p>TIme to</p>", "repository": false, "visible": true, "order": 2, "create_date": "2017-01-17T18:44:24.976186Z", "last_update": "2017-03-08T01:28:52.845818Z"}, "tags": [{"id": 123, "name": "wastelands"}, {"id": 124, "name": "disapear"}], "item_goal": [{"id": 6, "description": "Wastelands", "ref_value": 50, "order": 1}, {"id": 7, "description": "Arms with no weapons", "ref_value": 55, "order": 2}], "pendencies_resource": [{"id": 34, "action": "submit", "begin_date": "2017-03-07T20:10:00Z", "end_date": "2017-03-08T20:10:00Z", "limit_date": "2017-03-10T19:10:00Z"}], "_my_subclass": "goals", "name": "Future", "slug": "future", "brief_description": "", "show_window": false, "all_students": true, "visible": true, "order": 6, "create_date": "2017-03-06T20:11:11.156470Z", "last_update": "2017-08-04T14:30:58.202411Z", "presentation": "<p>Stands away</p>", "limit_submission_date": "2017-08-04T00:10:00Z"}]] | ||
3 | \ No newline at end of file | 3 | \ No newline at end of file |
bulletin/serializers.py
@@ -110,7 +110,7 @@ class SimpleBulletinSerializer(serializers.ModelSerializer): | @@ -110,7 +110,7 @@ class SimpleBulletinSerializer(serializers.ModelSerializer): | ||
110 | if topic_exist.exists(): | 110 | if topic_exist.exists(): |
111 | topic = topic_exist[0] | 111 | topic = topic_exist[0] |
112 | else: | 112 | else: |
113 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 113 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
114 | 114 | ||
115 | data["topic"] = topic | 115 | data["topic"] = topic |
116 | else: | 116 | else: |
@@ -252,7 +252,7 @@ class CompleteBulletinSerializer(serializers.ModelSerializer): | @@ -252,7 +252,7 @@ class CompleteBulletinSerializer(serializers.ModelSerializer): | ||
252 | if topic_exist.exists(): | 252 | if topic_exist.exists(): |
253 | topic = topic_exist[0] | 253 | topic = topic_exist[0] |
254 | else: | 254 | else: |
255 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 255 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
256 | 256 | ||
257 | data["topic"] = topic | 257 | data["topic"] = topic |
258 | else: | 258 | else: |
file_link/serializers.py
@@ -87,7 +87,7 @@ class SimpleFileLinkSerializer(serializers.ModelSerializer): | @@ -87,7 +87,7 @@ class SimpleFileLinkSerializer(serializers.ModelSerializer): | ||
87 | if topic_exist.exists(): | 87 | if topic_exist.exists(): |
88 | topic = topic_exist[0] | 88 | topic = topic_exist[0] |
89 | else: | 89 | else: |
90 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 90 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
91 | 91 | ||
92 | data["topic"] = topic | 92 | data["topic"] = topic |
93 | else: | 93 | else: |
@@ -197,7 +197,7 @@ class CompleteFileLinkSerializer(serializers.ModelSerializer): | @@ -197,7 +197,7 @@ class CompleteFileLinkSerializer(serializers.ModelSerializer): | ||
197 | if topic_exist.exists(): | 197 | if topic_exist.exists(): |
198 | topic = topic_exist[0] | 198 | topic = topic_exist[0] |
199 | else: | 199 | else: |
200 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 200 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
201 | 201 | ||
202 | data["topic"] = topic | 202 | data["topic"] = topic |
203 | else: | 203 | else: |
goals/serializers.py
@@ -63,7 +63,7 @@ class SimpleGoalSerializer(serializers.ModelSerializer): | @@ -63,7 +63,7 @@ class SimpleGoalSerializer(serializers.ModelSerializer): | ||
63 | if topic_exist.exists(): | 63 | if topic_exist.exists(): |
64 | topic = topic_exist[0] | 64 | topic = topic_exist[0] |
65 | else: | 65 | else: |
66 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 66 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
67 | 67 | ||
68 | data["topic"] = topic | 68 | data["topic"] = topic |
69 | else: | 69 | else: |
@@ -154,7 +154,7 @@ class CompleteGoalSerializer(serializers.ModelSerializer): | @@ -154,7 +154,7 @@ class CompleteGoalSerializer(serializers.ModelSerializer): | ||
154 | if topic_exist.exists(): | 154 | if topic_exist.exists(): |
155 | topic = topic_exist[0] | 155 | topic = topic_exist[0] |
156 | else: | 156 | else: |
157 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 157 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
158 | 158 | ||
159 | data["topic"] = topic | 159 | data["topic"] = topic |
160 | else: | 160 | else: |
links/serializers.py
@@ -51,7 +51,7 @@ class SimpleLinkSerializer(serializers.ModelSerializer): | @@ -51,7 +51,7 @@ class SimpleLinkSerializer(serializers.ModelSerializer): | ||
51 | if topic_exist.exists(): | 51 | if topic_exist.exists(): |
52 | topic = topic_exist[0] | 52 | topic = topic_exist[0] |
53 | else: | 53 | else: |
54 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 54 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
55 | 55 | ||
56 | data["topic"] = topic | 56 | data["topic"] = topic |
57 | else: | 57 | else: |
@@ -134,7 +134,7 @@ class CompleteLinkSerializer(serializers.ModelSerializer): | @@ -134,7 +134,7 @@ class CompleteLinkSerializer(serializers.ModelSerializer): | ||
134 | if topic_exist.exists(): | 134 | if topic_exist.exists(): |
135 | topic = topic_exist[0] | 135 | topic = topic_exist[0] |
136 | else: | 136 | else: |
137 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 137 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
138 | 138 | ||
139 | data["topic"] = topic | 139 | data["topic"] = topic |
140 | else: | 140 | else: |
pdf_file/serializers.py
@@ -80,7 +80,7 @@ class SimplePDFFileSerializer(serializers.ModelSerializer): | @@ -80,7 +80,7 @@ class SimplePDFFileSerializer(serializers.ModelSerializer): | ||
80 | if topic_exist.exists(): | 80 | if topic_exist.exists(): |
81 | topic = topic_exist[0] | 81 | topic = topic_exist[0] |
82 | else: | 82 | else: |
83 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 83 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
84 | 84 | ||
85 | data["topic"] = topic | 85 | data["topic"] = topic |
86 | else: | 86 | else: |
@@ -191,7 +191,7 @@ class CompletePDFFileSerializer(serializers.ModelSerializer): | @@ -191,7 +191,7 @@ class CompletePDFFileSerializer(serializers.ModelSerializer): | ||
191 | if topic_exist.exists(): | 191 | if topic_exist.exists(): |
192 | topic = topic_exist[0] | 192 | topic = topic_exist[0] |
193 | else: | 193 | else: |
194 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 194 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
195 | 195 | ||
196 | data["topic"] = topic | 196 | data["topic"] = topic |
197 | else: | 197 | else: |
subjects/serializers.py
@@ -27,4 +27,4 @@ class SubjectSerializer(serializers.ModelSerializer): | @@ -27,4 +27,4 @@ class SubjectSerializer(serializers.ModelSerializer): | ||
27 | 27 | ||
28 | class Meta: | 28 | class Meta: |
29 | model = Subject | 29 | model = Subject |
30 | - fields = ["name", "slug", "visible"] | ||
31 | \ No newline at end of file | 30 | \ No newline at end of file |
31 | + fields = ["name", "slug", "visible", "description_brief", "description"] | ||
32 | \ No newline at end of file | 32 | \ No newline at end of file |
webconference/serializers.py
@@ -51,7 +51,7 @@ class SimpleWebconferenceSerializer(serializers.ModelSerializer): | @@ -51,7 +51,7 @@ class SimpleWebconferenceSerializer(serializers.ModelSerializer): | ||
51 | if topic_exist.exists(): | 51 | if topic_exist.exists(): |
52 | topic = topic_exist[0] | 52 | topic = topic_exist[0] |
53 | else: | 53 | else: |
54 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 54 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
55 | 55 | ||
56 | data["topic"] = topic | 56 | data["topic"] = topic |
57 | else: | 57 | else: |
@@ -136,7 +136,7 @@ class CompleteWebconferenceSerializer(serializers.ModelSerializer): | @@ -136,7 +136,7 @@ class CompleteWebconferenceSerializer(serializers.ModelSerializer): | ||
136 | if topic_exist.exists(): | 136 | if topic_exist.exists(): |
137 | topic = topic_exist[0] | 137 | topic = topic_exist[0] |
138 | else: | 138 | else: |
139 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 139 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
140 | 140 | ||
141 | data["topic"] = topic | 141 | data["topic"] = topic |
142 | else: | 142 | else: |
webpage/serializers.py
@@ -51,7 +51,7 @@ class SimpleWebpageSerializer(serializers.ModelSerializer): | @@ -51,7 +51,7 @@ class SimpleWebpageSerializer(serializers.ModelSerializer): | ||
51 | if topic_exist.exists(): | 51 | if topic_exist.exists(): |
52 | topic = topic_exist[0] | 52 | topic = topic_exist[0] |
53 | else: | 53 | else: |
54 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 54 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
55 | 55 | ||
56 | data["topic"] = topic | 56 | data["topic"] = topic |
57 | else: | 57 | else: |
@@ -134,7 +134,7 @@ class CompleteWebpageSerializer(serializers.ModelSerializer): | @@ -134,7 +134,7 @@ class CompleteWebpageSerializer(serializers.ModelSerializer): | ||
134 | if topic_exist.exists(): | 134 | if topic_exist.exists(): |
135 | topic = topic_exist[0] | 135 | topic = topic_exist[0] |
136 | else: | 136 | else: |
137 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 137 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
138 | 138 | ||
139 | data["topic"] = topic | 139 | data["topic"] = topic |
140 | else: | 140 | else: |
youtube_video/serializers.py
@@ -51,7 +51,7 @@ class SimpleYTVideoSerializer(serializers.ModelSerializer): | @@ -51,7 +51,7 @@ class SimpleYTVideoSerializer(serializers.ModelSerializer): | ||
51 | if topic_exist.exists(): | 51 | if topic_exist.exists(): |
52 | topic = topic_exist[0] | 52 | topic = topic_exist[0] |
53 | else: | 53 | else: |
54 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 54 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
55 | 55 | ||
56 | data["topic"] = topic | 56 | data["topic"] = topic |
57 | else: | 57 | else: |
@@ -135,7 +135,7 @@ class CompleteYTVideoSerializer(serializers.ModelSerializer): | @@ -135,7 +135,7 @@ class CompleteYTVideoSerializer(serializers.ModelSerializer): | ||
135 | if topic_exist.exists(): | 135 | if topic_exist.exists(): |
136 | topic = topic_exist[0] | 136 | topic = topic_exist[0] |
137 | else: | 137 | else: |
138 | - topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order']) | 138 | + topic = Topic.objects.create(name = topic['name'], subject = topic['subject'], repository = topic['repository'], visible = topic['visible'], order = topic['order'], description = topic['description']) |
139 | 139 | ||
140 | data["topic"] = topic | 140 | data["topic"] = topic |
141 | else: | 141 | else: |