Skip to content

Commit

Permalink
Update factories.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Dec 9, 2024
1 parent c2134ae commit 0ad9e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_versioning/test_utils/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def version(self, create, extracted, **kwargs):
class AnswerFactory(factory.django.DjangoModelFactory):
poll_content = factory.SubFactory(PollContentFactory)
text = factory.LazyAttributeSequence(
lambda o, n: "Poll %s - Answer %d" % (o.poll_content.poll.name, n)
lambda o, n: f"Poll {o.poll_content.poll.name} - Answer {n}"
)

class Meta:
Expand Down

0 comments on commit 0ad9e12

Please sign in to comment.