mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from django.contrib.gis.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
class SimpleModel(models.Model):
|
||||
@@ -8,7 +7,6 @@ class SimpleModel(models.Model):
|
||||
required_db_features = ['gis_enabled']
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Location(SimpleModel):
|
||||
point = models.PointField()
|
||||
|
||||
@@ -16,7 +14,6 @@ class Location(SimpleModel):
|
||||
return self.point.wkt
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class City(SimpleModel):
|
||||
name = models.CharField(max_length=50)
|
||||
state = models.CharField(max_length=2)
|
||||
@@ -35,7 +32,6 @@ class DirectoryEntry(SimpleModel):
|
||||
location = models.ForeignKey(AugmentedLocation, models.CASCADE)
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Parcel(SimpleModel):
|
||||
name = models.CharField(max_length=30)
|
||||
city = models.ForeignKey(City, models.CASCADE)
|
||||
|
||||
Reference in New Issue
Block a user