Postgresql – How do I effectively filter locations in my database without having to loop through it manually?
In my DRF project, I have a model structured like this class ServiceLocation(models.Model): ''' Represents a location where an internet service is offered ''' SERVICE_TYPES = [ ("wifi", 'wifi'), ("fibre", "fibre"), ("p2p/ptmp", "p2p/ptmp") ] id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, null=False,…