Pass request data to various functions to allow for extra validation to be implemented on top of what is there now.

This commit is contained in:
Michael DeHaan
2013-04-19 12:10:30 -04:00
parent 4cd7405a37
commit 0ed275c3c8
4 changed files with 53 additions and 47 deletions

View File

@@ -154,7 +154,6 @@ class CredentialSerializer(BaseSerializer):
def validate(self, attrs):
''' some fields cannot be changed once written '''
import epdb; epdb.st()
if self.object is not None:
# this is an update
if self.object.user != attrs['user']: