.
This commit is contained in:
@@ -774,7 +774,8 @@ input {
|
|||||||
border-color: #05668d;
|
border-color: #05668d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-selection {
|
.select2-selection,
|
||||||
|
.select2-selection--single {
|
||||||
background-color: #05668d;
|
background-color: #05668d;
|
||||||
color: white;
|
color: white;
|
||||||
/* border: 1px solid #aaa; */
|
/* border: 1px solid #aaa; */
|
||||||
@@ -786,17 +787,16 @@ input {
|
|||||||
color: darkblue;
|
color: darkblue;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.temp-thumb-large {
|
.temp-thumb-large {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
height: 1000px;
|
height: 1000px;
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-duplicate {
|
.image-duplicate {
|
||||||
border: 2px solid orange;
|
border: 2px solid orange;
|
||||||
}
|
}
|
||||||
|
|
||||||
+7
-2
@@ -574,8 +574,13 @@ class ConditionAutocomplete(autocomplete.Select2QuerySetView):
|
|||||||
if self.q:
|
if self.q:
|
||||||
# This raises a fielderror which breaks creating a new item if not caught
|
# This raises a fielderror which breaks creating a new item if not caught
|
||||||
try:
|
try:
|
||||||
qs = qs.filter(name__icontains=self.q)
|
primary = qs.filter(name__icontains=self.q)
|
||||||
|
|
||||||
|
#synonyms = qs.filter(name__icontains=self.q, primary_name=False)
|
||||||
|
#for s in synonyms:
|
||||||
|
# primary.extend(s.synonym.filter(primary_name=True))
|
||||||
|
|
||||||
except FieldError:
|
except FieldError:
|
||||||
return Condition.objects.none()
|
return Condition.objects.none()
|
||||||
|
|
||||||
return qs
|
return primary
|
||||||
|
|||||||
Reference in New Issue
Block a user