(self, model_instance, is_active=True)
Add something to this domain, through the generic relation.
        Returns the created membership object
Add something to this domain, through the generic relation.
        Returns the created membership object
Add something to this domain through the generic relation . Returns the created membership object
def add(self, model_instance, is_active=True):
        """
        Add something to this domain, through the generic relation.
        Returns the created membership object
        """
        # Add membership info to Couch
        couch_user = model_instance.get_profile().get_couch_user()
        couch_user.add_domain_membership(self.name)
        couch_user.save()
def add ( self , model_instance , is_active = True ) : # Add membership info to Couch couch_user = model_instance . get_profile ( ) . get_couch_user ( ) couch_user . add_domain_membership ( self . name ) couch_user . save ( )