'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 }}``.'

def get_initial_data(self):

    data = {}
    ng_models = ((hasattr(self, u'Meta') and getattr(self.Meta, u'ng_models', [])) or [])
    for (name, field) in self.fields.items():
        if ((u'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
