(self)
Add this :class:`Field` to the fields of :attr:`model`.
Add this :class:`Field` to the fields of :attr:`model`.
Add this : class : Field to the fields of : attr : model .
def add_to_fields(self):
        '''Add this :class:`Field` to the fields of :attr:`model`.'''
        meta = self.model._meta
        meta.scalarfields.append(self)
        if self.index:
            meta.indices.append(self)
def add_to_fields ( self ) : meta = self . model . _meta meta . scalarfields . append ( self ) if self . index : meta . indices . append ( self )