Skip to content

Commit 360ed68

Browse files
committed
Python 3 compatiblity
1 parent 0679fe7 commit 360ed68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modelmixins/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def model_mixin(cls, target):
2121

2222
fields = {}
2323

24-
for (name, attr) in cls.__dict__.items():
24+
for (name, attr) in list(cls.__dict__.items()):
2525
if isinstance(attr, models.Field):
2626
fields[name] = attr
2727

28-
for (key, field) in fields.items():
28+
for (key, field) in list(fields.items()):
2929
field.contribute_to_class(target, key)
3030

3131

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
from distutils.core import setup
88

99
setup(name='django-model-mixins',
10-
version='1.0.2',
10+
version='1.0.3',
1111
description='Simple helper to extend django models using mixins',
1212
author='Thomas Bartelmess',
1313
author_email='[email protected]',
1414
url='https://github.com/tbartelmess/django-model-mixins',
1515
packages=['modelmixins'],
1616
classifiers=[
17-
'Development Status :: 3 - Alpha',
17+
'Development Status :: 5 - Production',
1818
'Environment :: Web Environment',
1919
'Framework :: Django',
2020
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)