Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Python 3 compatiblity

  • Loading branch information...
commit 360ed68e5cff7de4398063ead6df23454a6638d7 1 parent 0679fe7
@tbartelmess authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 modelmixins/__init__.py
  2. +2 −2 setup.py
View
4 modelmixins/__init__.py
@@ -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)
View
4 setup.py
@@ -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='thomas.bartelmess@me.com',
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',
Please sign in to comment.
Something went wrong with that request. Please try again.