Coverage for lino/modlib/users/fixtures/demo2.py : 0%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: UTF-8 -*- # Copyright 2012-2014 Luc Saffre # License: BSD (see file COPYING for details)
""" Set password "1234" for all users.
This is an additive fixture designed to work also on existing data.
"""
from django.conf import settings
def objects(): for u in settings.SITE.user_model.objects.exclude(profile=''): u.set_password('1234') yield u |