Import datetime and specify exact model in the join view