77
88``feincms_validate`` checks your models for common pitfalls.
99"""
10+ from __future__ import print_function
1011
1112from django .core .management .base import NoArgsCommand
1213from django .core .management .color import color_style
@@ -21,7 +22,7 @@ class Command(NoArgsCommand):
2122 def handle_noargs (self , ** options ):
2223 self .style = color_style ()
2324
24- print "Running Django's own validation:"
25+ print ( "Running Django's own validation:" )
2526 self .validate (display_num_errors = True )
2627
2728 for model in loading .get_models ():
@@ -38,7 +39,7 @@ def validate_base_model(self, model):
3839 """
3940
4041 if not hasattr (model , 'template' ):
41- print self .style .NOTICE ('%s has no template attribute; did you forget register_templates or register_regions?' % model )
42+ print ( self .style .NOTICE ('%s has no template attribute; did you forget register_templates or register_regions?' % model ) )
4243
4344 def validate_content_type (self , model ):
4445 """
@@ -47,4 +48,4 @@ def validate_content_type(self, model):
4748
4849 for base in model .__bases__ :
4950 if not base ._meta .abstract :
50- print self .style .NOTICE ('One of %s bases, %s, is not abstract' % (model , base ))
51+ print ( self .style .NOTICE ('One of %s bases, %s, is not abstract' % (model , base ) ))
0 commit comments