title: How to store simplejwt token into database
body: <p>I'm using django-rest-framework-simplejwt for user registration.</p>
  
  <p>Following this tutorial <a href="https://stackoverflow.com/questions/52033003/return-token-after-registration-with-django-rest-framework-simplejwt">enter link description here</a></p>
  
  <p>I code like following:</p>
  
  <pre><code>class RegistrationSerializer(serializers.ModelSerializer):
      password = serializers.CharField(
          style={'input_type': 'password'}, write_only=True,
      )
      password2 = serializers.CharField(
          style={'input_type': 'password'},max_length=20
      )
      tokens = serializers.SerializerMethodField()
  
      class Meta:
          model = UserProfile
          fields = ['username', 'email', 'password', 'password2', 'tokens']
  
      def get_tokens(self, user):
          user = UserProfile(
              email=self.validated_data['email'],
              username=self.validated_data['username']
          )
          password = self.validated_data['password']
          password2 = self.validated_data['password2']
          if password != password2:
              raise serializers.ValidationError({'password': 'Passwords must match.'})
          user.set_password(password)
          tokens = RefreshToken.for_user(user)
          refresh = text_type(tokens)
          access = text_type(tokens.access_token)
          data = {
              "refresh": refresh,
              "access": access
          }
          return data
  
      def save(self):
          user = UserProfile(
              email=self.validated_data['email'],
              username=self.validated_data['username']
          )
          password = self.validated_data['password']
          password2 = self.validated_data['password2']
          if password != password2:
              raise serializers.ValidationError({'password': 'Passwords must match.'})
          user.set_password(password)
          user.save()
          return user
  </code></pre>
  
  <p>in view:</p>
  
  <pre><code>class UserCreateView(generics.CreateAPIView):
      '''create user'''
      serializer_class = RegistrationSerializer
  </code></pre>
  
  <p>The problem is each time I create a user,I can get the return of the 2 two tokens,however in data base I can't find the token.</p>
  
  <p>So I guess I didn't store them,so should I store the token?</p>