Skip to content

OutstandingToken and BlacklistedToken don't have 'objects' attribute. #364

Open
@fearsd

Description

@fearsd

I wanted to delete user but I got error:
psycopg2.errors.ForeignKeyViolation: update or delete on table "accounts_useraccount" violates foreign key constraint "token_blacklist_outs_user_id_83bc629a_fk_accounts_" on table "token_blacklist_outstandingtoken"

So, I tried to delete this outstanding token entries from db but it failed:
AttributeError: type object 'OutstandingToken' has no attribute 'objects'

With BlacklistedToken the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions