Skip to content

Add sort/filter by need_date to Cage and Litter admin pages #29

@danieldkato

Description

@danieldkato

It's not obvious how to do this as need_date is a custom method, not a database field.

One workaround would be to create an actual database field for need_date, then have that field updated as part of LitterAdmin's save_model method that gets called every time someone hits the "save" or "save and continue editing" button.

There may be some other ways using querysets that allow us to sort non-database field custom methods though.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions