(self, **kwargs)
return dbdata['state']
Return the current :class:`ModelState` for this :class:`Model`.
If ``kwargs`` parameters are passed a new :class:`ModelState` is created,
otherwise it returns the cached value.
Return the current :class:`ModelState` for this :class:`Model`.
If ``kwargs`` parameters are passed a new :class:`ModelState` is created,
otherwise it returns the cached value.
Return the current : class : ModelState for this : class : Model . If kwargs parameters are passed a new : class : ModelState is created otherwise it returns the cached value .
def get_state(self, **kwargs):
        '''Return the current :class:`ModelState` for this :class:`Model`.
If ``kwargs`` parameters are passed a new :class:`ModelState` is created,
otherwise it returns the cached value.'''
        dbdata = self.dbdata
        if 'state' not in dbdata or kwargs:
            dbdata['state'] = ModelState(self, **kwargs)
        return dbdata['state']
def get_state ( self , * * kwargs ) : dbdata = self . dbdata if 'state' not in dbdata or kwargs : dbdata [ 'state' ] = ModelState ( self , * * kwargs ) return dbdata [ 'state' ]