Skip to content

[Enhancement] NoticeSettingsView queryset #60

Description

@ka7eh

Thanks for this handy app!

Here is a suggestion for improving(?) the settings view:
Right now when users access settings view, they can update their settings for all NoticeTypes.
A project might have some notices which are important and must be sent and it is better not to let users to opt out of those.
One way to handle this situation is using default field to filter NoticeType queryset in NoticeSettingsView. For example:

# views.NoticeSettingsView
def settings_table(self):
        notice_types = NoticeType.objects.filter(default__lt=settings.FILTER_THRESHOLD)

Or if there is any other built-in solution, please let me know! :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions