tschellenbach/Django-facebook — pull request #146 by esauro (2012-06-12 12:05:35+00:00)
Title: User data and profile data updates

The function _update_user just updated the user and profile data when the destination attributes were empty because "not gettattr(f, user, False)" was "True" only when user.f was empty (or not attribute at all but this never happens because there are a hasattr before)

I just remove the getattr because it's not needed, the attribute exists in the model because there is a proper hasattr (shortcut evaluation).

I also add a setting to control whether or not to force a profile/user data update on every login when using FacebookBackend as authentication backend (it includes fb_update_required in user object). This is useful when all the profile is facebook based, and you haven't any view to modify it.