mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
68 lines
1.4 KiB
Python
68 lines
1.4 KiB
Python
COLOR_CHOICES = (
|
|
('aa1409', 'Dark red'),
|
|
('f44336', 'Red'),
|
|
('e91e63', 'Pink'),
|
|
('ffe4e1', 'Rose'),
|
|
('ff66ff', 'Fuschia'),
|
|
('9c27b0', 'Purple'),
|
|
('673ab7', 'Dark purple'),
|
|
('3f51b5', 'Indigo'),
|
|
('2196f3', 'Blue'),
|
|
('03a9f4', 'Light blue'),
|
|
('00bcd4', 'Cyan'),
|
|
('009688', 'Teal'),
|
|
('00ffff', 'Aqua'),
|
|
('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'),
|
|
('ffffff', 'White'),
|
|
)
|
|
|
|
|
|
#
|
|
# Filter lookup expressions
|
|
#
|
|
|
|
FILTER_CHAR_BASED_LOOKUP_MAP = dict(
|
|
n='exact',
|
|
ic='icontains',
|
|
nic='icontains',
|
|
iew='iendswith',
|
|
niew='iendswith',
|
|
isw='istartswith',
|
|
nisw='istartswith',
|
|
ie='iexact',
|
|
nie='iexact'
|
|
)
|
|
|
|
FILTER_NUMERIC_BASED_LOOKUP_MAP = dict(
|
|
n='exact',
|
|
lte='lte',
|
|
lt='lt',
|
|
gte='gte',
|
|
gt='gt'
|
|
)
|
|
|
|
FILTER_LOOKUP_HELP_TEXT_MAP = dict(
|
|
icontains='case insensitive contains',
|
|
iendswith='case insensitive ends with',
|
|
istartswith='case insensitive starts with',
|
|
iexact='case insensitive exact',
|
|
exact='case sensitive exact',
|
|
lt='less than',
|
|
lte='less than or equal',
|
|
gt='greater than',
|
|
gte='greater than or equal',
|
|
n='negated'
|
|
)
|