(self, data_dict)
return model_data, uncategorized_data
Splits data_dict into two dictionaries:
        one for data which matches the model and one for data that doesn't
        Does not include reserved fields.
Splits data_dict into two dictionaries:
        one for data which matches the model and one for data that doesn't
        Does not include reserved fields.
Splits data_dict into two dictionaries : one for data which matches the model and one for data that doesn t Does not include reserved fields .
def get_model_and_uncategorized(self, data_dict):
        """
        Splits data_dict into two dictionaries:
        one for data which matches the model and one for data that doesn't
        Does not include reserved fields.
        """
        if not data_dict:
            return {}, {}
        model_data = {}
        uncategorized_data = {}
        slugs = {field.slug for field in self.field_set.all()}
        for k, v in data_dict.items():
            if k in slugs:
                model_data[k] = v
            elif is_system_key(k):
                pass
            else:
                uncategorized_data[k] = v

        return model_data, uncategorized_data
def get_model_and_uncategorized ( self , data_dict ) : if not data_dict : return { } , { } model_data = { } uncategorized_data = { } slugs = { field . slug for field in self . field_set . all ( ) } for k , v in data_dict . items ( ) : if k in slugs : model_data [ k ] = v elif is_system_key ( k ) : pass else : uncategorized_data [ k ] = v return model_data , uncategorized_data