mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
parent
8097e54832
commit
6b6d13bf6e
15 changed files with 83 additions and 21 deletions
|
@ -1,7 +1,8 @@
|
|||
from django.contrib.gis import admin
|
||||
from django.contrib.gis.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from ..admin import admin
|
||||
from ..models import models
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class City(models.Model):
|
||||
|
@ -12,6 +13,7 @@ class City(models.Model):
|
|||
|
||||
class Meta:
|
||||
app_label = 'geoadmin'
|
||||
required_db_features = ['gis_enabled']
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue