Skip to content

Commit

Permalink
Merge pull request #719 from basedosdados/dev
Browse files Browse the repository at this point in the history
organization.area to optional
  • Loading branch information
rdahis authored Dec 5, 2024
2 parents a9e6d9e + a99758b commit 452f814
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,13 @@ class Organization(BaseModel):
slug = models.SlugField(unique=False, max_length=255)
name = models.CharField(max_length=255)
description = models.TextField(blank=True, null=True)
area = models.ForeignKey("Area", on_delete=models.SET_NULL, null=True, related_name="organizations")
area = models.ForeignKey(
"Area",
on_delete=models.SET_NULL,
blank=True,
null=True,
related_name="organizations",
)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
website = models.URLField(blank=True, null=True, max_length=255)
Expand Down

0 comments on commit 452f814

Please sign in to comment.