Skip to content

Commit

Permalink
Fixed TimeZoneField to subclass CharField directly
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Dec 2, 2015
1 parent 8addfd3 commit 48609b1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions account/fields.py
@@ -1,20 +1,11 @@
from __future__ import unicode_literals

import django

from django.db import models
from django.utils import six

from account.conf import settings


if django.VERSION < (1, 8):
base = six.with_metaclass(models.SubfieldBase, models.CharField)
else:
base = models.CharField


class TimeZoneField(base):
class TimeZoneField(models.CharField):

def __init__(self, *args, **kwargs):
defaults = {
Expand Down

0 comments on commit 48609b1

Please sign in to comment.