summaryrefslogtreecommitdiff
path: root/tests/djapp
Commit message (Collapse)AuthorAge
* Clarify .build() issue with Django>1.8 (Ref #198).Raphaël Barrois2015-04-25
| | | | | | | | | | | | | | | | | | | | | | | | From 1.8 onwards, this crashes: >>> a = MyModel() # Don't save >>> b = MyOtherModel(fkey_to_mymodel=a) In turn, it breaks: class MyModelFactory(factory.django.DjangoModelFactory): class Meta: model = MyModel class MyOtherModelFactory(factory.django.DjangoModelFactory): class Meta: model = MyOtherModel fkey_to_mymodel = factory.SubFactory(MyModelFactory) MyOtherModelFactory.build() # Breaks The error message is: Cannot assign "MyModel()": "MyModel" instance isn't saved in the database. See https://code.djangoproject.com/ticket/10811 for details.
* Fix custom queryset tests for Django<1.7Raphaël Barrois2015-03-27
|
* Support declarations in FileField/ImageField.Raphaël Barrois2015-03-27
| | | | Previously, the declarations (``factory.Sequence`` & co) weren't properly computed.
* Respect default manager in DjangoModelFactory (Closes #192).Raphaël Barrois2015-03-27
| | | | | The previous version tries to use ``cls._default_manager`` all the time, which breaks with ``manager.using(db_name)``.
* Update header years.Raphaël Barrois2015-03-26
|
* Add support for multidb with Django (Closes #171).Raphaël Barrois2015-03-26
| | | | | | | | | | | | | | The ``factory.django.DjangoModelFactory`` now takes an extra option: ``` class MyFactory(factory.django.DjangoModelFactory): class Meta: model = models.MyModel database = 'replica' ``` This will create all instances of ``models.Model`` in the ``'replica'`` database.
* Fix support for Django 1.7.Raphaël Barrois2014-09-03
|
* factory.django: Fix counter inheritance with abstract models.Raphaël Barrois2014-05-18
|
* Added "prevent_signals" decorator/context managerIlya Pirogov2014-01-21
|
* django: Fix lazy loading of 'son' factories (Closes #109).Raphaël Barrois2013-11-25
|
* Fix Django sequences with abstract base models.Raphaël Barrois2013-09-25
|
* Get safe against missing PIL.Raphaël Barrois2013-06-27
|
* Add factory.django.ImageField (Closes #52).Raphaël Barrois2013-06-27
|
* Add factory.django.FileField (See #52)Raphaël Barrois2013-06-15
|
* Add django-based tests for DjangoModelFactory.Raphaël Barrois2013-06-10