'Returns a functional Django model based on current data'

def get_django_model(self, with_admin=False):

    fields = [(f.name, f.get_django_field()) for f in self.fields.all()]
    return create_model(self.name, dict(fields), app_label=u'dynamic', module=u'geonode.contrib.dynamic', options={u'db_table': self.name, u'managed': False}, with_admin=with_admin)
