Django models: how to manage field flags

1.1k Views Asked by At

I need to create a User Profile. To ensure privacy many fields in this profile will be "hidable": every User will be able to hide these information.

I can use https://github.com/disqus/django-bitfield, but i would like to know if it's possibile to better tie each field to its own flag.

1

There are 1 best solutions below

1
Ignacio Vazquez-Abrams On

Packing bits into a single field makes it more difficult to index and query the field. It's more effort than it's worth.