Example #1
0
 def options(self):
     return clean_options(
         [
             (criteria.backend_instance, criteria.backend_instance)
             for criteria in SmsGatewayFeeCriteria.objects.all()
         ]
     )
Example #2
0
 def options(self):
     return clean_options(
         [
             (domain.name, domain.name)
             for domain in Domain.get_all()
         ]
     )
Example #3
0
 def options(self):
     return clean_options(
         [
             (criteria.backend_api_id, criteria.backend_api_id)
             for criteria in SmsGatewayFeeCriteria.objects.all()
         ]
     )
Example #4
0
 def options(self):
     return clean_options(
         [
             (str(criteria.country_code), str(criteria.country_code))
             for criteria in SmsGatewayFeeCriteria.objects.all()
             if criteria.country_code is not None
         ]
     )
Example #5
0
 def options(self):
     return clean_options(get_criteria_property_options('backend_api_id'))
Example #6
0
 def options(self):
     return clean_options([(b, b) for b in SmsBillable.objects.values_list(
         'domain', flat=True).distinct()])
Example #7
0
 def options(self):
     return clean_options(get_criteria_property_options('country_code'))
Example #8
0
 def options(self):
     return clean_options(get_criteria_property_options('backend_instance'))
Example #9
0
 def options(self):
     return clean_options(get_criteria_property_options('backend_api_id'))
Example #10
0
 def options(self):
     return clean_options(
         [(b, b) for b in SmsBillable.objects.values_list(
             'domain', flat=True).distinct()]
     )
Example #11
0
 def options(self):
     account = BillingAccount.get_account_by_domain(self.request.domain)
     return clean_options([
         (domain, domain)
         for domain in Subscription.get_active_domains_for_account(account)
     ])
Example #12
0
 def options(self):
     return clean_options([
         (str(criteria.country_code), str(criteria.country_code))
         for criteria in SmsGatewayFeeCriteria.objects.all()
         if criteria.country_code is not None
     ])
Example #13
0
 def options(self):
     return clean_options([
         (criteria.backend_instance, criteria.backend_instance)
         for criteria in SmsGatewayFeeCriteria.objects.all()
     ])
Example #14
0
 def options(self):
     return clean_options([
         (criteria.backend_api_id, criteria.backend_api_id)
         for criteria in SmsGatewayFeeCriteria.objects.all()
     ])
Example #15
0
 def options(self):
     return clean_options(get_criteria_property_options('backend_instance'))
Example #16
0
 def options(self):
     return clean_options(get_criteria_property_options('country_code'))
Example #17
0
 def options(self):
     return clean_options([(domain.name, domain.name)
                           for domain in Domain.get_all()])