- Language: en
2 results for full text search in version 1.8
-
Writing custom model fields
- … full hand.""" p1 = re . compile ( '. {26} ' ) p2 = re . compile ( '..' ) args = [ p2 . findall ( x ) for x in p1 . findall ( hand_string )] if len ( args ) != 4 : raise ValidationError ( _ ( "Invalid …
-
Custom template tags and filters
- … searched by the template loader, we’d register the tag like this: # Here, register is a django.template.Library instance, as before @register . inclusion_tag ( 'results.html' ) def show_results ( poll ): ... Alternatively it is possible …