Skip to content

Fix admin interface error with user achievements #1571

@ntagtmeier

Description

@ntagtmeier

When adding a new user achievement using the admin interface, if you select an invalid combination of last_updated and date_earned, you will get a ValueError stating 'UserAchievementForm' has no field named 'self.date_earned'. This is not particularly informative and makes testing harder. Ideally, if you made this error, you would stay on the admin interface and be given a notification telling you why the data you attempted to enter was invalid. This problem might be solved by either changing how data validation is done in the UserAchievement model or by some specifications to the admin interface itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions