Admin py stuff

Minor changes to some admin.py pages (mostly to the formstack app module).

(also deals with issue #1253)
"I don't know, ask django"



Shulin Ye


On Thu, Jul 17, 2014 at 4:01 AM, Ben Kraft <notifications@github.com> wrote:

> In esp/esp/program/admin.py:
>
> >  admin_site.register(ScheduleConstraint, Admin_ScheduleConstraint)
> >
> >  class ScheduleTestOccupiedAdmin(admin.ModelAdmin):
> > -    list_display = ('timeblock', 'expr', 'seq', subclass_instance_type, 'text')
> > +    def program(obj):
> > +        return obj.timeblock.program
> > +    list_display = ('timeblock', program, 'expr', 'seq', subclass_instance_type, 'text')
>
> why can't this just be timeblock__program directly?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/learning-unlimited/ESP-Website/pull/1262/files#r15045012>
> .
>