Commit eeace88f authored by Daniel W Bond's avatar Daniel W Bond

Merge branch 'master' of github.com:srct/advisor

parents 521ca2e7 aabc9f8d
......@@ -10,30 +10,36 @@ class StudentAdmin(admin.ModelAdmin):
class CourseAdmin(admin.ModelAdmin):
search_fields = ['dept', 'courseid']
filter_horizontal = ('prerequisites', 'corequisites',)
class CourseGroupAdmin(admin.ModelAdmin):
search_fields = ['name']
filter_horizontal = ('courses',)
class MajorAdmin(admin.ModelAdmin):
search_fields = ['name']
filter_horizontal = ('requirements', 'concentrations',)
class MinorAdmin(admin.ModelAdmin):
search_fields = ['name']
filter_horizontal = ('requirements',)
class GenEdAdmin(admin.ModelAdmin):
search_fields = ['name']
filter_horizontal = ('requirements',)
class ConcentrationAdmin(admin.ModelAdmin):
search_fields = ['name']
filter_horizontal = ('requirements',)
class RequirementAdmin(admin.ModelAdmin):
pass
filter_horizontal = ('courses',)
admin.site.register(Student, StudentAdmin)
......
......@@ -79,6 +79,7 @@ class Concentration(Program):
class Requirement(TimeStampedModel):
name = models.CharField(max_length=50)
courses = models.ManyToManyField('MetaCourse')
catalogyear = models.IntegerField("Catalog Year")
def __unicode__(self):
return '%s' % self.name
......
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