gestioCOF/bda/__init__.py
2017-06-02 17:25:04 +01:00

10 lines
286 B
Python

from django.contrib.auth.models import User
def get_generic_user():
generic, created = User.objects.get_or_create(username="bda_generic")
if created:
generic.email = "bda@ens.fr"
generic.first_name = "Bureau des Arts"
generic.save()
return generic