Basically the milestones setter define here was never called by the milestones[key] = foo syntax, instead we were getting the @property retruning the current value of the project milestone in the DB.
This is fixing it by doing a local copy of the project milestones, adding the new key to the copy and dumping the copied dictionary to the DB.
Basically the milestones setter define here was never called by the milestones[key] = foo syntax, instead we were getting the @property retruning the current value of the project milestone in the DB.
This is fixing it by doing a local copy of the project milestones, adding the new key to the copy and dumping the copied dictionary to the DB.
Fixes https://pagure.io/pagure/issue/1604
Signed-off-by: Clement Verna cverna@tutanota.com