summaryrefslogtreecommitdiff
path: root/docs/orms.rst
Commit message (Collapse)AuthorAge
* docs: Del obsolete note on abstract Django modelsRaphaël Barrois2016-03-12
| | | | | | | That section described code required when factory_boy was automagically computing sequence numbers from the current PK value. Closes #280
* Merge pull request #258 from mluszczyk/patch-1Raphaël Barrois2016-02-09
|\ | | | | Fixed spelling of word "independent".
| * Fixed spelling.mluszczyk2015-12-28
| |
* | Clarify precedence on factory.django.FileField (Closes #257).Raphaël Barrois2016-02-10
| | | | | | | | | | | | | | When both ``from_file`` and ``filename`` are provided, ``filename`` takes precedence. Thanks to @darkowic for spotting this :)
* | optional forced flush on SQLAlchemyModelFactoryAlejandro2016-01-07
|/ | | | fixes rbarrois/factory_boy#81
* Update note on django's unsaved instance checksRaphaël Barrois2015-10-20
| | | | | | | This note was added to document a regression in Django 1.8.0; the regression has been fixed in 1.8.4. Closes #232
* Improve ORM layer import paths (Closes #186).Raphaël Barrois2015-05-31
| | | | | | | | | You may now use the following code: import factory factory.alchemy.SQLAlchemyModelFactory factory.django.DjangoModelFactory factory.mongoengine.MongoEngineFactory
* 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.
* 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 typos in docs (Closes #159, closes #178, closes #188).Raphaël Barrois2015-03-03
|
* docs: Improve explanation of SQLAlchemy's scoped_session.Raphaël Barrois2015-02-06
|
* docs: Add explanations about SQLAlchemy's scoped_session.Raphaël Barrois2015-02-06
|
* Remove deprecated features.Raphaël Barrois2014-11-18
| | | | | This disables the ``FACTORY_FOR`` syntax and related parameters, that should be declared through ``class Meta``.
* Remove automagic pk-based sequence setupRaphaël Barrois2014-11-16
| | | | | | | | | | | | | | | | | | | | | | | | Related to issues #78, #92, #103, #111, #153, #170 The default value of all sequences is now 0; the automagic ``_setup_next_sequence`` behavior of Django/SQLAlchemy has been removed. This feature's only goal was to allow the following scenario: 1. Run a Python script that uses MyFactory.create() a couple of times (with a unique field based on the sequence counter) 2. Run the same Python script a second time Without the magical ``_setup_next_sequence``, the Sequence counter would be set to 0 at the beginning of each script run, so both runs would generate objects with the same values for the unique field ; thus conflicting and crashing. The above behavior having only a very limited use and bringing various issues (hitting the database on ``build()``, problems with non-integer or composite primary key columns, ...), it has been removed. It could still be emulated through custom ``_setup_next_sequence`` methods, or by calling ``MyFactory.reset_sequence()``.
* doc: Document upgrade path for FACTORY_*.Raphaël Barrois2014-05-31
|
* Introduce back missing doc about migrating FACTROY_DJANGO_GET_OR_CREATE.Raphaël Barrois2014-05-21
|
* Rename 'target' to 'model'.Raphaël Barrois2014-05-18
|
* Update docs for class Meta.Raphaël Barrois2014-05-18
|
* Add doc for factory.django.mute_signals.Raphaël Barrois2014-01-21
|
* Add doc for MongoEngineFactory's support of EmbeddedDocument.Raphaël Barrois2013-12-25
| | | | Closes #100, #112.
* doc: Fix typo in django notes.Raphaël Barrois2013-10-05
|
* Fix Django sequences with abstract base models.Raphaël Barrois2013-09-25
|
* Add 'factory.debug' context manager.Raphaël Barrois2013-09-17
|
* Adding factory support for mongoengine (Closes #89).Jonathan Tushman2013-09-13
|
* Allow FACTORY_FOR = 'app.Model' for Django (Closes #66).Raphaël Barrois2013-08-28
|
* Add factory.django.ImageField (Closes #52).Raphaël Barrois2013-06-27
|
* Updated documentationrcommande2013-06-20
|
* Move DjangoModelFactory / MogoFactory to their own modules.Raphaël Barrois2013-06-09
|
* Add support for get_or_create in DjangoModelFactory.Raphaël Barrois2013-04-02
|
* Add a 'after post_generation' hook to Factory.Raphaël Barrois2013-03-04
| | | | | | Use it in DjangoModelFactory to save objects again if a post_generation hook ran. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Rewrite the whole documentation.Raphaël Barrois2013-03-03
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>