prologin / concours-site

Source code of the Prologin contest website
https://gitlab.com/prologin/concours/site
GNU General Public License v3.0
10 stars 6 forks source link

Admin Annotation Problem #346

Closed TheoHollender closed 2 years ago

TheoHollender commented 3 years ago

During the fix of #286, I found a bug that is actually unidentified, it seems like after we get the queryset in the AdminOrderFieldsMixin class, in the prologin/utils/db module, something overwrite all the annoated values to the last annotation.

TheoHollender commented 3 years ago

So the problem was done by the name in the method method in db.py, it was counsidered by python as a global variable, to fix it, i used a class to simulate using call a function which has a name in it's instance variables.

juli0z commented 2 years ago

Migrated to https://gitlab.com/prologin/concours/site/-/issues/346