예제 #1
0
파일: forms.py 프로젝트: jendc123/us_ignite
 def clean_tags(self):
     if 'tags' in self.cleaned_data:
         return output.prepare_tags(self.cleaned_data['tags'])
예제 #2
0
파일: forms.py 프로젝트: jendc123/us_ignite
 def clean_tags(self):
     if "tags" in self.cleaned_data:
         return output.prepare_tags(self.cleaned_data["tags"])
예제 #3
0
 def test_tags_are_changed_to_lowercase(self):
     tag_list = ['Hello', 'World']
     result = output.prepare_tags(tag_list)
     eq_(result, ['hello', 'world'])