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
8d88d8e1
Unverified
Commit
8d88d8e1
authored
Mar 13, 2017
by
David Haynes
Browse files
PEP8 compliance for RegisteredUser model
- spacing issues fixed
parent
e2b74ba0
Pipeline
#1074
passed with stage
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/models.py
View file @
8d88d8e1
...
...
@@ -17,39 +17,39 @@ import string
# generate the salt and initialize Hashids
hashids
=
Hashids
(
salt
=
"srct.gmu.edu"
,
alphabet
=
(
string
.
ascii_lowercase
+
string
.
digits
))
"""
This is simply a wrapper model for the user object which, if an object
exists, indicates that that user is registered.
"""
@
python_2_unicode_compatible
class
RegisteredUser
(
models
.
Model
):
"""
This is simply a wrapper model for the user object which, if an object
exists, indicates that that user is registered.
"""
# Is this User Blocked?
blocked
=
models
.
BooleanField
(
default
=
False
)
blocked
=
models
.
BooleanField
(
default
=
False
)
# Let's associate a User to this RegisteredUser
user
=
models
.
OneToOneField
(
User
)
# What is your name?
full_name
=
models
.
CharField
(
blank
=
False
,
max_length
=
100
,
blank
=
False
,
max_length
=
100
,
)
# What organization are you associated with?
organization
=
models
.
CharField
(
blank
=
False
,
max_length
=
100
,
blank
=
False
,
max_length
=
100
,
)
# Why do you want to use Go?
description
=
models
.
TextField
(
blank
=
True
)
description
=
models
.
TextField
(
blank
=
True
)
# Have you filled out the registration form?
registered
=
models
.
BooleanField
(
default
=
False
)
registered
=
models
.
BooleanField
(
default
=
False
)
# Are you approved to use Go?
approved
=
models
.
BooleanField
(
default
=
False
)
approved
=
models
.
BooleanField
(
default
=
False
)
# print(RegisteredUser)
def
__str__
(
self
):
...
...
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