Admin py stuff

Minor changes to some admin.py pages (mostly to the formstack app module).

(also deals with issue #1253)
I'm under the impression .count() hits the db again and len(...) would work
better?

(either way, yeah, should change)

Shulin Ye


On Thu, Jul 17, 2014 at 4:06 AM, Ben Kraft <notifications@github.com> wrote:

> In esp/esp/survey/admin.py:
>
> >
> >          newsurvey.save()
> > +        survey_count += 1
> > +
> > +    modeladmin.message_user(request, "%s survey(s) copied, a total of %s question(s) copied" % (survey_count, question_count))
>
> Again, queryset.count(). The questions could be counted with an
> aggregation.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/learning-unlimited/ESP-Website/pull/1262/files#r15045162>
> .
>