Skip to content

Commit

Permalink
organization.area to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Dec 5, 2024
1 parent 8b0d34a commit eb6c70b
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 eb6c70b

Please sign in to comment.