Skip to content

Commit

Permalink
feat: options for directory primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Nov 3, 2024
1 parent ba85bb2 commit 7f4cb48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,7 @@ class Column(BaseModel, OrderedModel):
related_name="columns",
blank=True,
null=True,
limit_choices_to={'is_primary_key': True, 'table__is_directory': True}
)
measurement_unit = models.CharField(max_length=255, blank=True, null=True)
contains_sensitive_data = models.BooleanField(default=False, blank=True, null=True)
Expand Down

0 comments on commit 7f4cb48

Please sign in to comment.