'Ensures the JSON field is JSON.'

def clean_permissions(self):

    permissions = self.cleaned_data['permissions']
    try:
        return json.loads(permissions)
    except ValueError:
        raise forms.ValidationError(_('Permissions    must    be    valid    JSON.'))
