Ensure that the primary provider is used in all tasks

This commit is contained in:
Martyn Inglis
2016-05-10 09:04:22 +01:00
parent 4f38039e09
commit 571686b638
14 changed files with 203 additions and 77 deletions

View File

@@ -69,6 +69,12 @@ class UserSchema(BaseSchema):
"_password", "verify_codes")
class ProviderDetailsSchema(BaseSchema):
class Meta:
model = models.ProviderDetails
exclude = ("provider_rates", "provider_stats")
class ServiceSchema(BaseSchema):
created_by = field_for(models.Service, 'created_by', required=True)
@@ -373,3 +379,4 @@ api_key_history_schema = ApiKeyHistorySchema()
template_history_schema = TemplateHistorySchema()
event_schema = EventSchema()
from_to_date_schema = FromToDateSchema()
provider_details_schema = ProviderDetailsSchema()