Flag to request removal of a package from a grid #763
Replies: 1 comment
-
Just following up on this issue. The solution that Shreehari gives is a good one, although rather than having a package be automatically removed from the filter() query after n number of times, it could be worth setting the field named active to Once the flag is approved by an author, a flag will be displayed next to the package. A solution like this would prevent unwanted flagging of packages that aren't yet but soon to be compatible with newer Python versions for example. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
This discussion is related to the issue #96. Hence i would like to discuss this here before moving forward with the development.
Describe the solution you'd like
Any authenticated user on the platform should be able to flag a package. A user can flag a particular package only once.
If a package is flagged with more than
n
(n can be decided) number of users, then it can be excluded from the list.Solution in detail
FlaggedPackages
with package and user as ForeignKeys. It will have a unique constraint on package and user. This helps to check whether a user has already flagged a package or not.(default=True)
on the Package model which will be set to False when there are n of flags.Beta Was this translation helpful? Give feedback.
All reactions