We have phased out the LDAP login form. Log in by using the CS Single Sign-On button in the Sign in with section below the Login form. :bug:

Skip to content
Snippets Groups Projects

Insert map coponent

Merged nkbmnq002 requested to merge insertMapCoponent into main
Files
17
+ 2
0
@@ -5,6 +5,8 @@ class Beach(models.Model):
# Represents a beach with various attributes
name = models.CharField(max_length=100) # Name of the beach
location = models.CharField(max_length=255, default="camps bay") # Location of the beach
latitude = models.FloatField(default=-33.3875)
longitude = models.FloatField(default=18.4110)
amenities = models.JSONField(default=list) # Amenities available at the beach, stored as a list of strings
weather = models.OneToOneField('Weather', on_delete=models.SET_NULL, null=True, blank=True) # Weather information for the beach
waterQuality = models.OneToOneField('WaterQuality', on_delete=models.SET_NULL, null=True, blank=True) # Water quality information for the beach
Loading