Commit dfabed80 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

small syntax fixes

parent d308fa3a
......@@ -29,7 +29,7 @@ urlpatterns = patterns('trajectories.views',
url(r'^user/(?P<username>\w+)/$', 'student', name = 'student'),
# creating the trajectory
url(r'^user/(?Pusername>\w+)/create/(?P<trajectoryslug>\w+)/$', 'makeTrajectory', name = 'maketrajectory'),
url(r'^user/(?P<username>\w+)/create/(?P<trajectoryslug>\w+)/$', 'makeTrajectory', name = 'maketrajectory'),
# comparison page
url(r'^user/(?P<username>\w+)/compare/$', 'compare', name = 'compare'),
......
......@@ -88,7 +88,7 @@ class Student(BaseModel):
# aka username, etc should all be here
class Meta:
ordering = ('name',)
ordering = ('user',)
def __unicode__(self):
return self.name
......
......@@ -52,7 +52,7 @@ def getGenEds(programs, isHonors):
genEdList.append(firstMajorType)
try:
secondMajor = program[1].degreeType
if firstMajorType is secondMajorType
if firstMajorType is secondMajorType:
genEdList.append(secondMajorType)
return genEdList
except:
......
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