forked from DGNum/gestioCOF
10 lines
286 B
Python
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
|