This PR refactors the RegionOfInterest model so that it is now used in the context of competitions.
Notable changes:
RegionOfInterest is now a model of the prizes app (it was previously on the tracks app)
Competition now has a ManyToManyField to RegionOfInterest, i.e, the same region can be used in multiple competitions.
This field is optional, so competitions may also be spatially global
Competition.geo is now of type Polygon (it was previously a MultiPolygon) - this change was made in order to simplify user interaction. Since the relationship with competition is already a many to many, admins can simply create multiple Polygon regions and add those, as opposed to being able to either create multiple Polygon regions or maybe just single MultiPolygon regions
This PR refactors the
RegionOfInterest
model so that it is now used in the context of competitions.Notable changes:
RegionOfInterest
is now a model of theprizes
app (it was previously on thetracks
app)Competition
now has aManyToManyField
toRegionOfInterest
, i.e, the same region can be used in multiple competitions.This field is optional, so competitions may also be spatially global
Competition.geo
is now of typePolygon
(it was previously aMultiPolygon
) - this change was made in order to simplify user interaction. Since the relationship with competition is already amany to many
, admins can simply create multiplePolygon
regions and add those, as opposed to being able to either create multiplePolygon
regions or maybe just singleMultiPolygon
regions