MCPcopy
hub / github.com/liangliangyy/DjangoBlog / search

Method search

blog/forms.py:12–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 querydata = forms.CharField(required=True)
11
12 def search(self):
13 datas = super(BlogSearchForm, self).search()
14 if not self.is_valid():
15 return self.no_query_found()
16
17 if self.cleaned_data['querydata']:
18 logger.info(self.cleaned_data['querydata'])
19 return datas

Callers 2

test_validate_articleMethod · 0.95
get_first_image_urlMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_validate_articleMethod · 0.76