django-autofixture
django-autofixture copied to clipboard
Can create auto-generated test data.
Autofixture works naively and has a tendency to trigger signals on models downstream from the intended model. Factory boy has a method for silencing signals on explicit models, perhaps in...
It would be useful if this library used the bulk_create Django ORM method, instead of doing an insert per row.
``` def get_generator(self, field): if field.name == 'content_type': return generators.ChoicesGenerator( values=[ContentType.objects.get_for_model(m) for m in [ModelOne, ModelTwo, ModelThree]]) elif field.name == 'object_id': # where to pick right model class? ¯\(°_o)/¯ ```...
Added generator for GenericFK relations. Overall method: find GenericFk fields from model._meta.virtual_fields, add them to the list of fields to be processed, and remove the constituent content_type and object_id fields...
Much easier to find the docs this way, IMO. Thanks for the project! :-)
How does one populate a reverse relationship? Given the following models: ``` class Plan(models.Model): name = models.CharField(max_length=50) class PlanOption(models.Model): name = models.CharField(max_length=50) plan = models.ForeignKey(Plan) ``` If I want to...
My development environment depends on Django 1.10. Builtin tests does not cover anything for 1.10. Is it working on 1.10 or is there any plan to migrate to higher versions...
I have the following model at my app ~~~ BLOG_POST_STATUS = ( ('U', 'Waiting for triage'), # This is the status after we receive the blog post draft. ('R', 'Waiting...
Ability to add default photos from custom folder path