diff --git a/model_bakery/random_gen.py b/model_bakery/random_gen.py index d356ef61..4e92b2fb 100644 --- a/model_bakery/random_gen.py +++ b/model_bakery/random_gen.py @@ -135,7 +135,11 @@ def gen_slug(max_length: int) -> str: def gen_text() -> str: warnings.warn( - "gen_text is deprecated, use gen_string instead", + "\n" + "Accessing `model_bakery.random_gen.gen_text` is deprecated " + "and will be removed in a future major release. Please use " + "`model_bakery.random_gen.gen_string` instead." + "\n", DeprecationWarning, stacklevel=2, )