Created  django form for checking data in query