Skip to content

[Enhancement] Backend: automatically detect event status #19

@infinity1729

Description

@infinity1729

Description
Currently we are sending a status field in the API where admin has to manually update the status.
This issue aims to automate this by getting current dat and then pass wether it is ongoing, upcoming, or ended.

Screenshots
API call
image

Present code (backend/events/models.py)
image

Important Note:
We expect you to create a new branch for solving this issue names as eventStatus.
The command to create and access new branch is git checkout -b eventStatus

Metadata

Metadata

Assignees

No one assigned

    Labels

    codepeak2022This issue will be considered for codepeak2022easyenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions