I usually do this:

default = auth.user.username.upper() if auth.user else None

Reply via email to