Fix ForeignKey references to Client model with Application