-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
ec4515f
commit aa2505b
Showing
10 changed files
with
13 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import string | ||
|
||
import factory | ||
from cms.models import Placeholder | ||
from django.contrib.auth.models import User | ||
from django.contrib.contenttypes.models import ContentType | ||
|
||
from cms.models import Placeholder | ||
|
||
import factory | ||
from django.db import models | ||
from factory.fuzzy import FuzzyInteger, FuzzyText | ||
|
||
from djangocms_snippet.models import Snippet, SnippetGrouper, SnippetPtr | ||
|
||
|
||
try: | ||
from djangocms_versioning.models import Version | ||
except ImportError: | ||
|
@@ -23,7 +20,7 @@ class UserFactory(factory.django.DjangoModelFactory): | |
first_name = factory.Faker("first_name") | ||
last_name = factory.Faker("last_name") | ||
email = factory.LazyAttribute( | ||
lambda u: "%s.%[email protected]" % (u.first_name.lower(), u.last_name.lower()) | ||
lambda u: f"{u.first_name.lower()}.{u.last_name.lower()}@example.com" | ||
) | ||
|
||
class Meta: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters