title: How can I get data argument from serializer?
body: <p>I'm using Django and django-restframework.</p>
  
  <p>I don't know How to access Serializer's argument.</p>
  
  <p>I can access full json data from <code>serializer.data</code>. But when I tried to get argument like <code>id</code>, then it return error. <code>serializer.data.id</code>.</p>
  
  <p>How can i get it? I used lots of time for search this, but failed.</p>
  
  <p>I do this because update model based on user input.</p>
  
  <p>e.g.</p>
  
  <ol>
  <li>user input <code>id</code>.</li>
  <li>get data with that <code>id</code>.</li>
  <li>save that data to database.</li>
  </ol>
  
  <p>I'm very very thanks for reading this.</p>
  
  <h1>views.py</h1>
  
  <pre class="lang-python prettyprint-override"><code>class CareerViewSet(viewsets.ModelViewSet):
      queryset = Career.objects.all()
      serializer_class = CareerSerializer
      permission_classes = (IsCreateable,)
  
      def perform_create(self, serializer):
          serializer.save(nickname='test')
          print(serializer.data)
          print(serializer.data.id)
  </code></pre>
  
  <h1>Error</h1>
  
  <pre><code>{'id': 14, 'created': '2017-04-26T12:39:58.249038Z', 'modified': '2017-04-26T12:39:58.249538Z', 'battle_tag': 'Fortune-1130', 'nickname': 'test', 'quick_eliminations': None, 'quick_damage_done': None, 'quick_deaths': None, 'quick_final_blows': None, 'quick_healing_done': None, 'quick_objective_kills': None, 'quick_objective_time': None, 'quick_solo_kills': None, 'competitive_eliminations': None, 'competitive_damage_done': None, 'competitive_deaths': None, 'competitive_final_blows': None, 'competitive_healing_done': None, 'competitive_objective_kills': None, 'competitive_objective_time': None, 'competitive_solo_kills': None, 'games_won': None, 'competitive_rank': None, 'level': None}
  Internal Server Error: /career/
  Traceback (most recent call last):
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\django\core\handlers\exception.py", line 42, in inner
      response = get_response(request)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\django\core\handlers\base.py", line 187, in _get_response
      response = self.process_exception_by_middleware(e, request)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\django\core\handlers\base.py", line 185, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\django\views\decorators\csrf.py", line 58, in wrapped_view
      return view_func(*args, **kwargs)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\rest_framework\viewsets.py", line 83, in view
      return self.dispatch(request, *args, **kwargs)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\rest_framework\views.py", line 483, in dispatch
      response = self.handle_exception(exc)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\rest_framework\views.py", line 443, in handle_exception
      self.raise_uncaught_exception(exc)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\rest_framework\views.py", line 480, in dispatch
      response = handler(request, *args, **kwargs)
    File "E:\Development\Venv\20170420\myvenv\lib\site-packages\rest_framework\mixins.py", line 21, in create
      self.perform_create(serializer)
    File "E:\Development\Venv\20170420\overmatch_django\overwatch\views.py", line 38, in perform_create
      print(serializer.data.id)
  AttributeError: 'ReturnDict' object has no attribute 'id'
  </code></pre>