Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
remove GeoManager from models
Browse files Browse the repository at this point in the history
  • Loading branch information
maltem-za committed Jan 28, 2016
1 parent 6bfbefc commit d2425cf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions service_directory/api/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import unicode_literals

from django.contrib.gis.db import models
from django.db import models
from django.contrib.gis.db.models import PointField


class Country(models.Model):
Expand Down Expand Up @@ -33,8 +34,6 @@ def __unicode__(self):


class Organisation(models.Model):
objects = models.GeoManager()

name = models.CharField(max_length=100)
about = models.CharField(max_length=500, blank=True)

Expand All @@ -46,7 +45,7 @@ class Organisation(models.Model):
country = models.ForeignKey(Country)
areas = models.ManyToManyField(CountryArea)

location = models.PointField(srid=4326)
location = PointField(srid=4326)

def __unicode__(self):
return self.name
Expand Down Expand Up @@ -80,8 +79,6 @@ def formatted_categories(self):


class Service(models.Model):
objects = models.GeoManager()

categories = models.ManyToManyField(Category)
keywords = models.ManyToManyField(Keyword)

Expand Down

0 comments on commit d2425cf

Please sign in to comment.