Prevent error with tastypie import when using with django 1.5