(self)
return target
returns the target (device or device group) that has been selected
        in the form.
returns the target (device or device group) that has been selected
        in the form.
returns the target ( device or device group ) that has been selected in the form .
def get_target(self):
        """
        returns the target (device or device group) that has been selected
        in the form.
        """
        if not self.is_valid():
            logger.warning("no target given in SyncForm")
            raise ValueError(_("No device selected"))

        target = self.cleaned_data["targets"]
        return target
def get_target ( self ) : if not self . is_valid ( ) : logger . warning ( "no target given in SyncForm" ) raise ValueError ( _ ( "No device selected" ) ) target = self . cleaned_data [ "targets" ] return target