-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2622: Enable filtering cables by multiple types/colors
- Loading branch information
1 parent
5acd429
commit 08b4b24
Showing
5 changed files
with
39 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
from utilities.forms import ChainedModelMultipleChoiceField | ||
|
||
|
||
# Fields which are used on ManyToMany relationships | ||
M2M_FIELD_TYPES = [ | ||
ChainedModelMultipleChoiceField, | ||
] | ||
COLOR_CHOICES = ( | ||
('aa1409', 'Dark red'), | ||
('f44336', 'Red'), | ||
('e91e63', 'Pink'), | ||
('ff66ff', 'Fuschia'), | ||
('9c27b0', 'Purple'), | ||
('673ab7', 'Dark purple'), | ||
('3f51b5', 'Indigo'), | ||
('2196f3', 'Blue'), | ||
('03a9f4', 'Light blue'), | ||
('00bcd4', 'Cyan'), | ||
('009688', 'Teal'), | ||
('2f6a31', 'Dark green'), | ||
('4caf50', 'Green'), | ||
('8bc34a', 'Light green'), | ||
('cddc39', 'Lime'), | ||
('ffeb3b', 'Yellow'), | ||
('ffc107', 'Amber'), | ||
('ff9800', 'Orange'), | ||
('ff5722', 'Dark orange'), | ||
('795548', 'Brown'), | ||
('c0c0c0', 'Light grey'), | ||
('9e9e9e', 'Grey'), | ||
('607d8b', 'Dark grey'), | ||
('111111', 'Black'), | ||
) |
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