code: def user_default_add_related_pks(self, obj):
          
          if not hasattr(obj, '_votes_pks'):
              obj._votes_pks = list(obj.votes.values_list('pk', flat=True))
docs: Add related primary keys to a User instance.