title: {detail: Unsupported media type "text/plain; charset=utf-8" in request.}
body: <p>I am using Flutter and Django and have this error when try to call the backend</p>
  <p>Back end error :
  {detail: Unsupported media type &quot;text/plain; charset=utf-8&quot; in request.}</p>
  <p>Flutter code :</p>
  <pre><code>Future&lt;void&gt; addAlbum(Album album) async {
  print('5');
  final url = Uri.parse('http://127.0.0.1:8000/list-create/');
  
  try {
     print('6');
    final response = await http.post(url,
        headers: {
          'Authorization': 'Token dc7e96ed776bc44d013b44fdfe560a616c64646f',
        },
        body: json.encode({
          'title': album.title,
          'cover': album.cover, // =&gt; this is an int
          'photos_number': album.photos_number, // =&gt; this is an int
  
        }));
        print('6 ed');
    final responseData = json.decode(response.body);
    print(responseData.toString());
  
    final newAlbum = Album(
      title: album.title,
      cover: album.cover,
      photos_number: album.photos_number,
    );
    print('6 edddgg');
  
    _items.add(newAlbum);
  
    print('6 f');
    notifyListeners();
  } catch (error) {
     print('7');
    print(error);
    throw error;
  }
  </code></pre>
  <p>}
  }</p>