feat: Implement initial schema and add various API, service, and management command enhancements across the application.

This commit is contained in:
pacnpal
2026-01-01 15:13:01 -05:00
parent c95f99ca10
commit b243b17af7
413 changed files with 11164 additions and 17433 deletions

View File

@@ -9,9 +9,7 @@ class ParkLocation(models.Model):
Represents the geographic location and address of a park, with PostGIS support.
"""
park = models.OneToOneField(
"parks.Park", on_delete=models.CASCADE, related_name="location"
)
park = models.OneToOneField("parks.Park", on_delete=models.CASCADE, related_name="location")
# Spatial Data
point = models.PointField(
@@ -27,10 +25,7 @@ class ParkLocation(models.Model):
state = models.CharField(max_length=100, db_index=True)
country = models.CharField(max_length=100, default="USA")
continent = models.CharField(
max_length=50,
blank=True,
db_index=True,
help_text="Continent where the park is located"
max_length=50, blank=True, db_index=True, help_text="Continent where the park is located"
)
postal_code = models.CharField(max_length=20, blank=True)