Skip to content

Commit c5b8a4a

Browse files
committed
First commit
1 parent 4ed9121 commit c5b8a4a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea
12
build
23
*CACHE*
34
dist

geoposition/fields.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from __future__ import unicode_literals
22

33
from django.db import models
4-
from django.utils.six import with_metaclass
5-
from django.utils.translation import ugettext_lazy as _
64
from django.utils.encoding import smart_text
5+
from django.utils.translation import ugettext_lazy as _
76

87
from . import Geoposition
98
from .forms import GeopositionField as GeopositionFormField
@@ -47,7 +46,7 @@ def get_prep_value(self, value):
4746
return str(value)
4847

4948
def value_to_string(self, obj):
50-
value = self._get_val_from_obj(obj)
49+
value = self.value_from_object(obj)
5150
return smart_text(value)
5251

5352
def formfield(self, **kwargs):

0 commit comments

Comments
 (0)