janerikhy / geoDjango

0 stars 0 forks source link

Projects model #6

Open janerikhy opened 3 years ago

janerikhy commented 3 years ago

What?

Scientists and organizations should be able to create projects with areas of interest, species of interest and citizen scientists should be able to participate in these. Along with the project, there should be different challenges associated with it and by completing these challenges users should be rewarded with points.

How?

Create a new app and model for projects in the Django repo. The model should contain:

Considerations

Each project must have its own leaderboard, meaning that we must keep track of the score of each participant in the project. As of now, the CitizenScientist users have a field called points, but this is only updated when they upload an observation which is within an Area Of Interest polygon. Thus, it might be necessary to create a new model for participants, which will hold the score of the participant in the related project rather than extracting points for this area of interest.

TO DO:

janerikhy commented 3 years ago

The location property doesn't seem to do much for the project as we already have an area of interest model which is supposed to account for the same thing. Try to override the ProjectForm save() method so that the researcher can draw a polygon and area of interest is automatically created from that polygon.