Skip to content

Commit

Permalink
Nitpicking.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippbosch committed Jun 28, 2016
1 parent cf9862e commit 76b10e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion geoposition/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import unicode_literals

from decimal import Decimal


VERSION = (0, 2, 2)
__version__ = '.'.join(map(str, VERSION))

Expand Down
2 changes: 1 addition & 1 deletion geoposition/tests/test_geoposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def test_inequality_with_none(self):
self.assertTrue(gp1 != gp2)

def test_db_value_to_python_object(self):
obj = PointOfInterest.objects.create(name='Foo', address='some where', city='city', zipcode='12345', position=Geoposition(52.5,13.4))
obj = PointOfInterest.objects.create(name='Foo', address='some where', city='city', zipcode='12345', position=Geoposition(52.5, 13.4))
poi = PointOfInterest.objects.get(id=obj.id)
self.assertIsInstance(poi.position, Geoposition)
2 changes: 1 addition & 1 deletion geoposition/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def decompress(self, value):
return value.rsplit(',')
if value:
return [value.latitude, value.longitude]
return [None,None]
return [None, None]

def format_output(self, rendered_widgets):
return render_to_string('geoposition/widgets/geoposition.html', {
Expand Down
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)

0 comments on commit 76b10e5

Please sign in to comment.