-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
80 additions
and
12 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.admindatefilter p:not([class]) { | ||
display: none !important; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.select2-container { | ||
max-width: 100% !important; | ||
min-width: 250px; | ||
|
||
.select2-selection { | ||
background: var(--bs-body-bg) !important; | ||
border: var(--bs-border-width) solid var(--bs-border-color) !important; | ||
} | ||
|
||
.select2-selection__arrow { | ||
margin-top: 3px; | ||
} | ||
} | ||
|
||
[data-bs-theme="dark"] { | ||
.select2-dropdown { | ||
background: var(--bs-body-bg); | ||
color: var(--bs-body-color); | ||
} | ||
} | ||
|
||
.select2-container--default .select2-selection--single .select2-selection__rendered { | ||
color: var(--bs-body-color) !important; | ||
margin-top: 2px; | ||
} | ||
|
||
.select2-container--admin-autocomplete .select2-search--dropdown .select2-search__field, | ||
.select2-container--default .select2-search--dropdown .select2-search__field { | ||
border: var(--bs-border-width) solid var(--bs-border-color) !important; | ||
outline: 0; | ||
} | ||
|
||
.select2-container--default .select2-results__option--highlighted[aria-selected], | ||
.select2-results__option select2-results__option--highlighted, | ||
.select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] { | ||
background: var(--bs-info) !important; | ||
color: var(--bs-black) !important; | ||
} |
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from django import forms | ||
from django_select2 import forms as s2forms | ||
|
||
from . import models | ||
|
||
|
||
class UserWidget(s2forms.ModelSelect2Widget): | ||
search_fields = [ | ||
"username__icontains", | ||
"email__icontains", | ||
] | ||
|
||
|
||
class ActivityForm(forms.ModelForm): | ||
class Meta: | ||
model = models.Activity | ||
fields = "__all__" | ||
widgets = { | ||
"user": UserWidget, | ||
} |