Code for Django tutorial (up to generics portion of tutorial 4)