Client(username=self.user.username, password=self.user.password)
                  
                  
                      url = '/admin/info/news/add/'
                  
                  
                      data = {'title': None}
                  
                  
                      response = client.post(url, data, format='json')
                  
                  
                      self.assertEqual(response.status_code, 302)
                  
                  
                  
                  
                  
                  он грит что типо не может  None быть там
                  
                  
                  TypeError: Cannot encode None as POST data. Did you mean to pass an empty string or omit the value?
                  
                  
                  а мне нужно None туда передать
                  
                  
                
А какой тип поля у title?
Обсуждают сегодня