Exemple #1
0
 def to_python(self, value):
     if value == 'L4440':
         raise forms.ValidationError('RNAi query cannot be L4440')
     elif not value:
         return None
     else:
         return Clone.get_clones_from_search_term(value)
Exemple #2
0
 def to_python(self, value):
     if value == 'L4440':
         raise forms.ValidationError('RNAi query cannot be L4440')
     elif not value:
         return None
     else:
         return Clone.get_clones_from_search_term(value)
Exemple #3
0
 def to_python(self, value):
     if not value:
         return Clone.objects.all()
     else:
         return Clone.get_clones_from_search_term(value)
Exemple #4
0
 def to_python(self, value):
     if not value:
         return Clone.objects.all()
     else:
         return Clone.get_clones_from_search_term(value)