Commit 99584aab by cahrens

pep8 cleanup

parent 6a499805
......@@ -200,4 +200,3 @@ class CourseGroupTest(TestCase):
add_user_to_course_group(creator2, staff2, location2, STAFF_ROLE_NAME)
self.assertSetEqual({self.creator, creator2}, get_users_with_instructor_role())
......@@ -14,11 +14,12 @@ class CourseCreator(models.Model):
"""
Creates the database table model.
"""
STATES = ((u'u', u'unrequested'),
(u'p', u'pending'),
(u'g', u'granted'),
(u'd', u'denied'),
)
STATES = (
(u'u', u'unrequested'),
(u'p', u'pending'),
(u'g', u'granted'),
(u'd', u'denied'),
)
user = models.ForeignKey(User, help_text="Studio user", unique=True)
state_changed = models.DateTimeField('state last updated', auto_now_add=True,
......@@ -29,7 +30,7 @@ class CourseCreator(models.Model):
'why course creation access was denied)')
def __unicode__(self):
s = "%str %str | %str [%str] | %str" % (self.user.username, self.user.email, self.state, self.state_changed, self.note)
s = "%str | %str [%str] | %str" % (self.user, self.state, self.state_changed, self.note)
return s
......
......@@ -58,4 +58,3 @@ class CourseCreatorView(TestCase):
self.assertEqual('g', get_course_creator_status(self.user))
self.assertTrue(is_user_in_creator_group(self.user))
......@@ -146,9 +146,7 @@ if settings.MITX_FEATURES.get('ENABLE_SERVICE_STATUS'):
url(r'^status/', include('service_status.urls')),
)
urlpatterns += (
url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += (url(r'^admin/', include(admin.site.urls)),)
urlpatterns = patterns(*urlpatterns)
......
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