Skip to content

Incorrect documentation of models.AccessToken.expires #225

@vitawasalreadytaken

Description

@vitawasalreadytaken

The AccessToken model docs say:

expires: Expire time in seconds, defaults to settings.ACCESS_TOKEN_EXPIRE_SECONDS

However, the actual model defines this as a datetime field (expires = models.DateTimeField()) and there is no default.

This was just a little confusing when I tried to create an AccessToken instance manually for API unit tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions