Skip to content

Commit

Permalink
Remove confusing return in post_generation example
Browse files Browse the repository at this point in the history
The return value of post generation hooks is stored for advanced uses
(i.e. saving instances for DjangoModelFactory after the post generation
hooks completed), but this use is undocumented and not part of the
public API.

After issue #316 is completed, the save on post generation for
DjangoModelFactory will be removed. That will also drop the last use for
the `_after_postgeneration()` extension point. However, the extension
point is kept to avoid disruption for projects that may be relying on
it.
  • Loading branch information
francoisfreitag committed Jul 18, 2022
1 parent 6dab977 commit a252ef0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,6 @@ A decorator is also provided, decorating a single method accepting the same
return
path = extracted or os.path.join('/tmp/mbox/', obj.login)
os.path.makedirs(path)
return path
.. OHAI_VIM**
Expand Down

0 comments on commit a252ef0

Please sign in to comment.