Unverified Commit 8d88d8e1 authored by David Haynes's avatar 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
...@@ -17,39 +17,39 @@ import string ...@@ -17,39 +17,39 @@ import string
# generate the salt and initialize Hashids # generate the salt and initialize Hashids
hashids = Hashids(salt="srct.gmu.edu", alphabet=(string.ascii_lowercase + string.digits)) 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 @python_2_unicode_compatible
class RegisteredUser(models.Model): 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? # Is this User Blocked?
blocked = models.BooleanField(default = False) blocked = models.BooleanField(default=False)
# Let's associate a User to this RegisteredUser # Let's associate a User to this RegisteredUser
user = models.OneToOneField(User) user = models.OneToOneField(User)
# What is your name? # What is your name?
full_name = models.CharField( full_name = models.CharField(
blank = False, blank=False,
max_length = 100, max_length=100,
) )
# What organization are you associated with? # What organization are you associated with?
organization = models.CharField( organization = models.CharField(
blank = False, blank=False,
max_length = 100, max_length=100,
) )
# Why do you want to use Go? # Why do you want to use Go?
description = models.TextField(blank = True) description = models.TextField(blank=True)
# Have you filled out the registration form? # Have you filled out the registration form?
registered = models.BooleanField(default = False) registered = models.BooleanField(default=False)
# Are you approved to use Go? # Are you approved to use Go?
approved = models.BooleanField(default = False) approved = models.BooleanField(default=False)
# print(RegisteredUser) # print(RegisteredUser)
def __str__(self): def __str__(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment