Added a SerializerMethodField named userStatus field to the HackathonSerializer as required in the frontend. This field returns the following values about the status of the hackathon for the current user:
False if the user isn't logged in.
not registered if the user hasn't participated in the hackathon
registered if the user has registered for the hackathon but hasn't submitted yet
submitted if the user has made at least one submission from one of their team.
Details about the hackathon's status can be viewed in the status field of the response body.
Description
Added a
SerializerMethodField
nameduserStatus
field to theHackathonSerializer
as required in the frontend. This field returns the following values about the status of the hackathon for the current user:False
if the user isn't logged in.not registered
if the user hasn't participated in the hackathonregistered
if the user has registered for the hackathon but hasn't submitted yetsubmitted
if the user has made at least one submission from one of their team.status
field of the response body.