misc: use straight attribute as AttributeError parameter (#89777)
This commit is contained in:
parent
efd10a0564
commit
19454beb04
|
@ -664,7 +664,7 @@ class LazyFormDefObjectsManager:
|
|||
if attribute == 'formdef':
|
||||
warnings.warn('Deprecated access to formdef', DeprecationWarning)
|
||||
return self._formdef
|
||||
raise AttributeError('No such attribute %r' % attribute)
|
||||
raise AttributeError(attribute)
|
||||
|
||||
def __len__(self):
|
||||
if self._cached_resultset is not None:
|
||||
|
|
Loading…
Reference in New Issue