code: def get_initial_data(self):
          
          data = {}
          ng_models = hasattr(self, 'Meta') and getattr(self.Meta, 'ng_models', []) or []
          for name, field in self.fields.items():
              if 'ng-model' in self.ng_directives or name in ng_models:
                  data[name] = self.initial.get(name) if self.initial else field.initial
          return data
docs: Return a dictionary specifying the defaults for this form. This dictionary can be used to
          inject the initial values for an Angular controller using the directive:
          ``ng-init={{ thisform.get_initial_data|js|safe }}``.