Updates for the event images

This commit is contained in:
Vivek P Prakash
2025-12-01 05:38:08 +05:30
parent 9dc99ede91
commit d1c7042018
2 changed files with 17 additions and 17 deletions

32
.idea/workspace.xml generated
View File

@@ -38,8 +38,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/mobile_web_api/views/events.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="97" lean-forward="true" selection-start-line="97" selection-end-line="97" />
<state relative-caret-position="213">
<caret line="140" column="39" lean-forward="true" selection-start-line="140" selection-start-column="39" selection-end-line="140" selection-end-column="39" />
<folding>
<element signature="e#0#36#0" expanded="true" />
</folding>
@@ -50,8 +50,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/mobile_web_api/urls.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="265">
<caret line="19" column="47" selection-start-line="19" selection-start-column="47" selection-end-line="19" selection-end-column="47" />
<state relative-caret-position="205">
<caret line="16" column="40" selection-start-line="16" selection-start-column="40" selection-end-line="16" selection-end-column="40" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
@@ -104,8 +104,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/events/models.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="133">
<caret line="44" column="9" selection-start-line="44" selection-start-column="4" selection-end-line="44" selection-end-column="9" />
<state relative-caret-position="153">
<caret line="45" column="14" selection-start-line="45" selection-start-column="4" selection-end-line="45" selection-end-column="14" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
@@ -324,7 +324,7 @@
<option name="presentableId" value="Default" />
<updated>1764194364815</updated>
<workItem from="1764194366807" duration="12589000" />
<workItem from="1764319665186" duration="22903000" />
<workItem from="1764319665186" duration="23257000" />
</task>
<task id="LOCAL-00001" summary="Changes in the settings for the deployment">
<created>1764280838609</created>
@@ -351,7 +351,7 @@
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="35492000" />
<option name="totallyTimeSpent" value="35846000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
@@ -732,20 +732,20 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/events/models.py">
<entry file="file://$PROJECT_DIR$/mobile_web_api/urls.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="133">
<caret line="44" column="9" selection-start-line="44" selection-start-column="4" selection-end-line="44" selection-end-column="9" />
<state relative-caret-position="205">
<caret line="16" column="40" selection-start-line="16" selection-start-column="40" selection-end-line="16" selection-end-column="40" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/mobile_web_api/urls.py">
<entry file="file://$PROJECT_DIR$/events/models.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="265">
<caret line="19" column="47" selection-start-line="19" selection-start-column="47" selection-end-line="19" selection-end-column="47" />
<state relative-caret-position="153">
<caret line="45" column="14" selection-start-line="45" selection-start-column="4" selection-end-line="45" selection-end-column="14" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
@@ -754,8 +754,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/mobile_web_api/views/events.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="97" lean-forward="true" selection-start-line="97" selection-end-line="97" />
<state relative-caret-position="213">
<caret line="140" column="39" lean-forward="true" selection-start-line="140" selection-start-column="39" selection-end-line="140" selection-end-column="39" />
<folding>
<element signature="e#0#36#0" expanded="true" />
</folding>

View File

@@ -141,7 +141,7 @@ class EventDetailAPI(APIView):
for ei in event_images:
event_img = {}
event_img['is_primary'] = ei.is_primary
event_img['image'] = event_images_list.append(request.build_absolute_uri(ei.event_image.url))
event_img['image'] = request.build_absolute_uri(ei.event_image.url)
event_images_list.append(event_img)
data["images"] = event_images_list