gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
21
core/apps/eggs/models/location.py
Normal file
21
core/apps/eggs/models/location.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
Location model
|
||||
"""
|
||||
|
||||
from django.db import models
|
||||
|
||||
from core.http.models import base
|
||||
|
||||
|
||||
class Location(base.AbstractBaseModel):
|
||||
long = models.FloatField(null=True, blank=True)
|
||||
lat = models.FloatField(null=True, blank=True)
|
||||
label = models.TextField()
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"{self.long}, {self.lat}"
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Location"
|
||||
verbose_name_plural = "Locations"
|
||||
db_table = "location"
|
||||
Reference in New Issue
Block a user