fix django 1.5 is special in how you get the model

fixes the error:

    AttributeError: 'Options' object has no attribute 'model'