Closed Evert-R closed 1 day ago
This PR sets the slug field on the Experiment model to be unique.
slug
Experiment
First the slug data gets migrated to a temporary field, then the original slug field is deleted, after which the temporary slug is renamed to slug.
Directly changing the slug field with unique=True didn't work, in every which way i tried, even when no experiments were present in the database.
unique=True
closes: #1352
This PR sets the
slug
field on theExperiment
model to be unique.First the slug data gets migrated to a temporary field, then the original slug field is deleted, after which the temporary slug is renamed to
slug
.Directly changing the slug field with
unique=True
didn't work, in every which way i tried, even when no experiments were present in the database.closes: #1352