code: def needs_sync(self):
          
  
          affected_attributes = [
              'css_files', 'js_files',
              'scss_files', 'widgets']
  
          for attr in affected_attributes:
              if len(getattr(self, attr)) > 0:
                  return True
          return False
docs: Indicates whater module needs templates, static etc.