Skip to content

Commit

Permalink
Fixup. Format code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 29, 2024
1 parent dbfd2ca commit 2d37cfc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pod/video/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ class CustomClearableFileInput(ClearableFileInput):

class OwnerWidget(s2forms.ModelSelect2Widget):
"""Widget for selecting a single owner."""

search_fields = [
"username__icontains",
"email__icontains",
Expand All @@ -439,6 +440,7 @@ class OwnerWidget(s2forms.ModelSelect2Widget):

class AddOwnerWidget(s2forms.ModelSelect2MultipleWidget):
"""Widget for selecting multiple owners."""

search_fields = [
"username__icontains",
"email__icontains",
Expand All @@ -447,6 +449,7 @@ class AddOwnerWidget(s2forms.ModelSelect2MultipleWidget):

class AddAccessGroupWidget(s2forms.ModelSelect2MultipleWidget):
"""Widget for selecting multiple access groups."""

search_fields = [
"display_name__icontains",
"code_name__icontains",
Expand All @@ -455,13 +458,15 @@ class AddAccessGroupWidget(s2forms.ModelSelect2MultipleWidget):

class ChannelWidget(s2forms.ModelSelect2MultipleWidget):
"""Widget for selecting multiple channels."""

search_fields = [
"title__icontains",
]


class DisciplineWidget(s2forms.ModelSelect2MultipleWidget):
"""Widget for selecting multiple disciplines."""

search_fields = [
"title__icontains",
]
Expand Down Expand Up @@ -521,6 +526,7 @@ def label_from_instance(self, obj):
@deconstructible
class FileSizeValidator(object):
"""File size validator."""

message = _(
"The current file %(size)s, which is too large. "
"The maximum file size is %(allowed_size)s."
Expand Down Expand Up @@ -1106,6 +1112,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the ChannelForm metadata."""

model = Channel
fields = "__all__"
widgets = {
Expand Down Expand Up @@ -1143,6 +1150,7 @@ def clean(self):

class Meta(object):
"""Define the ThemeForm metadata."""

model = Theme
fields = "__all__"

Expand All @@ -1163,6 +1171,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the FrontThemeForm metadata."""

model = Theme
fields = "__all__"

Expand Down Expand Up @@ -1204,6 +1213,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the TypeForm metadata."""

model = Type
fields = "__all__"

Expand All @@ -1219,6 +1229,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the DisciplineForm metadata."""

model = Discipline
fields = "__all__"

Expand All @@ -1232,6 +1243,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the VideoVersionForm metadata."""

model = VideoVersion
fields = "__all__"

Expand All @@ -1250,6 +1262,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the NotesForm metadata."""

model = Notes
fields = ["note"]

Expand All @@ -1275,6 +1288,7 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the AdvancedNotesForm metadata."""

model = AdvancedNotes
fields = ["video", "note", "timestamp", "status"]

Expand All @@ -1300,5 +1314,6 @@ def __init__(self, *args, **kwargs):

class Meta(object):
"""Define the NoteCommentsForm metadata."""

model = NoteComments
fields = ["comment", "status"]

0 comments on commit 2d37cfc

Please sign in to comment.