Skip to content

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

@pete-kelly

Description

@pete-kelly

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions