Skip to content

Commit

Permalink
Merge pull request #45 from barseghyanartur/dev
Browse files Browse the repository at this point in the history
Update factories.rst (#44)
  • Loading branch information
barseghyanartur authored Dec 16, 2023
2 parents 313ab4a + 7b28c71 commit 96c300d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/factories.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Factories
=========

- ``pre_save`` a method decorator that will always run before the instance
- ``pre_save`` is a method decorator that will always run before the instance
is saved.
- ``post_save`` a method decorator that will always run after the instance
- ``post_save`` is a method decorator that will always run after the instance
is saved.
- ``trait`` decorator runs the code if set to True in factory constructor.
- ``PreSave`` is like the ``pre_save`` decorator of the ``ModelFactory``,
Expand All @@ -16,7 +16,7 @@ Factories
- ``LazyAttribute`` expects a callable, will take the instance as a first
argument, runs it with extra arguments specified and sets the value as
an attribute name.
- ``LazyFunction`` expect a callable, runs it (without any arguments) and
- ``LazyFunction`` expects a callable, runs it (without any arguments) and
sets the value as an attribute name.
- ``SubFactory`` is for specifying relations (typically - ForeignKeys).

Expand Down

0 comments on commit 96c300d

Please sign in to comment.