Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pete-kelly opened this issue Sep 28, 2015 · 0 comments
Open

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

pete-kelly opened this issue Sep 28, 2015 · 0 comments

Comments

@pete-kelly
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant