Is get_validation_exclusions method of ModelSerializer in Django Rest Framework removed in latest versions?
<p>While running the below code:</p>

<pre><code>class PostSerializer(serializers.ModelSerializer):
    author = UserSerializer(required=False)

    def get_validation_exclusions(self):
        exclusions = super(PostSerializer, self).get_validation_exclusions()
        return exclusions + ['author']
</code></pre>

<p>I am getting the error <code>Column 'author' cannot be null</code>. When I checked online for documentation, this method is not available since 3.0 release (link: <a href="http://www.cdrf.co/3.3/rest_framework.serializers/ModelSerializer.html" rel="nofollow">http://www.cdrf.co/3.3/rest_framework.serializers/ModelSerializer.html</a>). Please let me know the alternative for this method supported in latest version.</p>