0

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.

vad
  • 1,196
  • 9
  • 22

1 Answers1

1

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

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • you're right, but i use these flags only to display the content. So i don't need to query on flags – vad Apr 25 '11 at 08:45