Skip to content

Commit

Permalink
feat: datetime_range.unit
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Jul 3, 2024
1 parent 04fcbd4 commit 2af76ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,9 @@ class DateTimeRange(BaseModel):
end_minute = models.IntegerField(blank=True, null=True)
end_second = models.IntegerField(blank=True, null=True)
interval = models.IntegerField(blank=True, null=True)
unit = models.ForeignKey(
"Column", on_delete=models.CASCADE, related_name="datetime_ranges"
)
is_closed = models.BooleanField("Is Closed", default=False)

graphql_fields_blacklist = BaseModel.graphql_fields_blacklist + ["since", "until"]
Expand Down

0 comments on commit 2af76ec

Please sign in to comment.