(self)
Unarchive a product, causing it (and its data) to show
        up in Couch and SQL views again.
Unarchive a product, causing it (and its data) to show
        up in Couch and SQL views again.
Unarchive a product causing it ( and its data ) to show up in Couch and SQL views again .
def unarchive(self):
        """
        Unarchive a product, causing it (and its data) to show
        up in Couch and SQL views again.
        """
        if self.code:
            if SQLProduct.objects.filter(domain=self.domain, code=self.code, is_archived=False).exists():
                raise DuplicateProductCodeException()
        self.is_archived = False
        self.save()
def unarchive ( self ) : if self . code : if SQLProduct . objects . filter ( domain = self . domain , code = self . code , is_archived = False ) . exists ( ) : raise DuplicateProductCodeException ( ) self . is_archived = False self . save ( )