Skip to content

Commit

Permalink
fix(project): change type of foreignkey between projeectcommune and c…
Browse files Browse the repository at this point in the history
…ommune
  • Loading branch information
alexisig committed Oct 23, 2024
1 parent 408917b commit ca8e6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/models/project_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Meta:

class ProjectCommune(models.Model):
project = models.ForeignKey("project.Project", on_delete=models.CASCADE)
commune = models.ForeignKey("public_data.Commune", on_delete=models.PROTECT)
commune = models.ForeignKey("public_data.Commune", on_delete=models.PROTECT, to_field="insee")
group_name = models.CharField("Nom du groupe", max_length=100, blank=True, null=True)


Expand Down

0 comments on commit ca8e6cb

Please sign in to comment.