diff --git a/autofixture/management/commands/loadtestdata.py b/autofixture/management/commands/loadtestdata.py index 7ea1e99..a092475 100644 --- a/autofixture/management/commands/loadtestdata.py +++ b/autofixture/management/commands/loadtestdata.py @@ -192,8 +192,8 @@ def handle(self, *attrs, **options): models = [] for attr in attrs: try: - app_label, model_label = attr.split('.') - model_label, count = model_label.split(':') + app_label, model_label = attr.rsplit('.', 1) + model_label, count = model_label.rsplit(':', 1) count = int(count) except ValueError: raise CommandError(