Skip to content

Commit

Permalink
Cleanup after merge of #39
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel committed Mar 1, 2018
1 parent 83b7b0f commit 86d750e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.rst
Expand Up @@ -88,6 +88,7 @@ Changelog
* Add support for django 1.10, 1.11
* Add support for python 3.6
* Add wheel support
* Support bytes in DB fields (#38 & #39)

* 2.0 (2016-01-31)

Expand Down
2 changes: 0 additions & 2 deletions tests/models.py
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

from django.db import models

from timezone_field import TimeZoneField
Expand Down
1 change: 0 additions & 1 deletion tests/urls.py

This file was deleted.

5 changes: 0 additions & 5 deletions timezone_field/fields.py
Expand Up @@ -110,11 +110,6 @@ def _get_python_and_db_repr(self, value):
return (None, '')
if is_pytz_instance(value):
return (value, value.zone)
if isinstance(value, six.string_types):
try:
return (pytz.timezone(value), value)
except pytz.UnknownTimeZoneError:
pass
try:
return (pytz.timezone(force_text(value)), force_text(value))
except pytz.UnknownTimeZoneError:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -34,4 +34,4 @@ commands = coverage erase
[testenv:coverage-report]
commands =
coverage report
coverage html
coverage html

0 comments on commit 86d750e

Please sign in to comment.