Skip to content

Commit

Permalink
Python 3 compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
tbartelmess committed Jul 21, 2013
1 parent 0679fe7 commit 360ed68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modelmixins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def model_mixin(cls, target):

fields = {}

for (name, attr) in cls.__dict__.items():
for (name, attr) in list(cls.__dict__.items()):
if isinstance(attr, models.Field):
fields[name] = attr

for (key, field) in fields.items():
for (key, field) in list(fields.items()):
field.contribute_to_class(target, key)


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from distutils.core import setup

setup(name='django-model-mixins',
version='1.0.2',
version='1.0.3',
description='Simple helper to extend django models using mixins',
author='Thomas Bartelmess',
author_email='[email protected]',
url='https://github.com/tbartelmess/django-model-mixins',
packages=['modelmixins'],
classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 5 - Production',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 360ed68

Please sign in to comment.