(self, attrs)
| 37 | return user |
| 38 | |
| 39 | def validate(self, attrs): # type: ignore[no-untyped-def] |
| 40 | if not FFAdminUser.objects.filter(pk=attrs.get("id")).exists(): |
| 41 | message = "User with id %d does not exist" % attrs.get("id") |
| 42 | raise ValidationError({"id": message}) |
| 43 | return attrs |
| 44 | |
| 45 | def _get_user(self, validated_data): # type: ignore[no-untyped-def] |
| 46 | try: |