          instance.linenos = validated_data.get('linenos', instance.linenos)
          instance.language = validated_data.get('language', instance.language)
          instance.style = validated_data.get('style', instance.style)
          instance.save()
  
  	def create(self, validated_data):
          return Snippet.objects.create(**validated_data)
  
 
</s> remove Note that the `.create` method should return the newly created object instance.
 </s> add Note that these methods should return the newly created object instance. </s> remove         self.create_valid(serializer)
 </s> add         self.perform_create(serializer) </s> remove     def create(self, attrs):
 </s> add     def create(self, validated_attrs): </s> remove         self.update_valid(serializer)
 </s> add         self.preform_update(serializer) </s> remove         # Remove many-to-many relationships from attrs.
 </s> add         # Remove many-to-many relationships from validated_attrs.
        return instance
          instance.linenos = validated_data.get('linenos', instance.linenos)
          instance.language = validated_data.get('language', instance.language)
          instance.style = validated_data.get('style', instance.style)
          instance.save()
        return instance
  
  	def create(self, validated_data):
          return Snippet.objects.create(**validated_data)
  
keep keep keep add keep keep keep keep
 Tweak pre/post save hooks. Return instance in .update(). 
docs/topics/3.0-announcement.md