openslides_backend/models/base.py
def has_field(self, field_name: str) -> bool:
        """
        Returns True if the model has such a field (including populated template fields).
        """
        return bool(self.try_get_field(field_name))

        Returns True if the model has such a field (including populated template fields).
        
Returns True if the model has such a field (including populated template fields).
Returns True if the model has such a field ( including populated template fields ) .
def has_field(self, field_name: str) -> bool:
        return bool(self.try_get_field(field_name))
def has_field ( self , field_name : str ) -> bool : return bool ( self . try_get_field ( field_name ) )
Returns True if the model has such a field (including populated template fields).
Returns True if the model has such a field ( including populated template fields ) .
"""
        Returns True if the model has such a field (including populated template fields).
        """
self
field_name
str