Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
f0edcc90
Commit
f0edcc90
authored
Apr 23, 2016
by
David Haynes
🙆
Browse files
Ensure username is returned (Closes #35)
- I swear I wrote this line before
parent
aabf8dfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/forms.py
View file @
f0edcc90
...
...
@@ -152,6 +152,7 @@ class SignupForm(forms.ModelForm):
if
not
self
.
request
.
user
.
is_staff
:
if
self
.
request
.
user
.
username
not
in
data_username
:
raise
ValidationError
(
'username'
,
"This is not your NetID!"
)
return
data_username
username
=
forms
.
CharField
(
required
=
True
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment