

def __init__(self, *args, **kwargs):
    super(DatabaseSerializer, self).__init__(*self, **kwargs)
    request = self.context.get('request', None)
    if request:
        creating = (request.method == 'POST')
        self.fields['plan'].read_only = (not creating)
        self.fields['environment'].read_only = (not creating)
        self.fields['name'].read_only = (not creating)
        self.fields['credentials'].read_only = True
        self.fields['description'].read_only = (not creating)

dataset/ETHPy150Open globocom/database-as-a-service/dbaas/api/database.py DatabaseSerializer.__init__/VarMisuse@26/30 `args`->`self`