-
Notifications
You must be signed in to change notification settings - Fork 0
dev_kas #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: pre-production
Are you sure you want to change the base?
dev_kas #8
Conversation
# Conflicts: # geodjango/samplelocations/migrations/0002_datastream_observation_location_sample_sensor_thing_and_more.py
geodjango/samplelocations/models.py
Outdated
| # Define class-based choices for the 'thing_type' field. | ||
| # This allows for a more structured way to define and use choices in Django models. | ||
| # The format is CHOICE = " database value", "human-readable or display name" | ||
| class ThingType(models.TextChoices): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be defined outside of the Thing class? I think that will make it easier to understand and follow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it can. Good idea.
geodjango/samplelocations/models.py
Outdated
|
|
||
| #Fields specific to a SPRING | ||
| spring_type = models.CharField(max_length=255, blank=True, null=True) # e.g. "artesian", "subartesian", "thermal", etc. | ||
| description_spring = models.CharField(max_length=255, blank=True, null=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of restricting description to a particular thing type, how about just having a general description field for all things?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was trying to think of another spring-specific field, but description does seem applicable to a general Thing.
jacob-a-brown
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good to me
chasetmartin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me too.
This PR: