feat: add profile_photo to StatusView response

Expose profile_photo in /user/status/ so the Flutter app can
hydrate the profile picture for existing sessions without requiring
a re-login.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-08 16:12:27 +05:30
parent 9aa7c01efe
commit 60d98f1ae8

View File

@@ -134,6 +134,7 @@ class StatusView(View):
"eventify_id": user.eventify_id or '',
"district": user.district or '',
"district_changed_at": user.district_changed_at.isoformat() if user.district_changed_at else None,
"profile_photo": user.profile_picture.url if user.profile_picture else '',
})
except Exception as e: