make Django 1.7 happy.
Merge pull request #1 from certtools/rest

make Django 1.7 happy.