Flagsmith / Flagsmith/flagsmith

TypeError: Field 'id' expected a number but got <api_keys.user.APIKeyUser object at 0x7efd11a98fd0>.

Open
#4,379 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Sentry Issue: [FLAGSMITH-API-4S8](https://flagsmith.sentry.io/issues/5638987639/?referrer=github_integration)

```
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'APIKeyUser'
File "django/db/models/fields/__init__.py", line 1823, in get_prep_value
return int(value)

TypeError: Field 'id' expected a number but got .
(17 additional frame(s) were not displayed)
...
File "metadata/views.py", line 42, in get_queryset
queryset = MetadataField.objects.filter(organisation__users=self.request.user)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.