joke2k / django-faker

Django-faker uses fake-factory to generate test data for Django models and templates
MIT License
245 stars 48 forks source link

Python 3 Support #15

Closed edwinlunando closed 8 years ago

edwinlunando commented 9 years ago

Hi! I want to use django-faker for my project, but I got this error

Traceback (most recent call last):
  File "/home/edwinlunando/Projects/pikavia/pikavia/core/test_views.py", line 18, in setUp
    populator.execute()
  File "/home/edwinlunando/.virtualenvs/pikavia3/lib/python3.4/site-packages/django_faker/populator.py", line 155, in execute
    using = self.getConnection()
  File "/home/edwinlunando/.virtualenvs/pikavia3/lib/python3.4/site-packages/django_faker/populator.py", line 176, in geistConnection
    klass = klass[0]
TypeError: 'dict_keys' object does not support indexing

I think the issue is quite simple. In Python 3, dict_keys return a set, not a list.