File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1717import logging
1818from uuid import UUID
1919
20- # Third Party
21- import bleach
22- from actstream import action as actstream_action
23- from bleach .css_sanitizer import CSSSanitizer
2420# Django
2521from django .conf import settings
2622from django .contrib .postgres .search import TrigramSimilarity
2723from django .db .models import Q
2824from django .utils .decorators import method_decorator
2925from django .utils .translation import gettext as _
3026from django .views .decorators .cache import cache_page
27+
28+ # Third Party
29+ import bleach
30+ from actstream import action as actstream_action
31+ from bleach .css_sanitizer import CSSSanitizer
3132from drf_spectacular .types import OpenApiTypes
3233from drf_spectacular .utils import (
3334 OpenApiParameter ,
8990from wger .utils .db import is_postgres_db
9091from wger .utils .language import load_language
9192
93+
9294logger = logging .getLogger (__name__ )
9395
9496
Original file line number Diff line number Diff line change 2121# Django
2222from django .db import models
2323from django .utils .translation import gettext_lazy as _
24+
2425# Third Party
2526from simple_history .models import HistoricalRecords
2627
Original file line number Diff line number Diff line change 1212#
1313# You should have received a copy of the GNU Affero General Public License
1414
15+ # Django
16+ from django .core .exceptions import ValidationError
17+
1518# Third Party
1619from PIL import (
1720 Image ,
1821 UnidentifiedImageError ,
1922)
20- # Django
21- from django .core .exceptions import ValidationError
23+
2224
2325MAX_FILE_SIZE_MB = 20
2426
You can’t perform that action at this time.
0 commit comments