Closed
Description
django-seed does not fill in this field, and instead raises an error
saying the field cannot be null.
Command used: (output does not change regardless of optional parameters)
seeder.add_entity(LifeXIdea, 1, {
'modified': timezone.now,
})
Model field in lifeX.models.LifeXIdea
:
modified = models.DateTimeField(blank=True,)
Traceback:
Traceback (most recent call last):
File "/Volumes/Data/CODE/harshp.com/source/sitedata/tests.py", line 57, in setUp
insertedPKs = seeder.execute()
File "/Volumes/Data/CODE/harshp.com/lib/python2.7/site-packages/django_seed/seeder.py", line 133, in execute
entity = self.entities[klass].execute(using, inserted_entities)
File "/Volumes/Data/CODE/harshp.com/lib/python2.7/site-packages/django_seed/seeder.py", line 71, in execute
setattr(obj, field, format(inserted_entities))
File "/Volumes/Data/CODE/harshp.com/lib/python2.7/site-packages/django_seed/seeder.py", line 39, in build_relation
raise SeederException(message)
SeederException: Field lifeX.LifeXIdea.modified cannot be null
Metadata
Metadata
Assignees
Labels
No labels