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
Expand Up @@ -21,11 +21,11 @@ def model_mixin(cls, target):


fields = {} fields = {}


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


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




Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -7,14 +7,14 @@
from distutils.core import setup from distutils.core import setup


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

0 comments on commit 360ed68

Please sign in to comment.