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

AttributeError: 'Generator' object has no attribute 'dateTime' #18

Open pete-kelly opened 8 years ago

pete-kelly commented 8 years ago

Have trouble on the execute step. New to django_faker. Here's what I did and the error I got:

from django_faker import Faker populator = Faker.getPopulator() from myapp.models import App populator.addEntity(App,1) insertedPks = populator.execute() Traceback (most recent call last): . . . File "/path-to-environment/lib/python2.7/site-packages/django_faker/populator.py", line 31, in if isinstance(field, DateTimeField): return lambda x: generator.dateTime() AttributeError: 'Generator' object has no attribute 'dateTime'