def post_syncdb(sender, created_models, **kwargs):
    for model in created_models:
        label = '.'.join([model._meta.app_label, model._meta.object_name])
        order_fields = is_orderable(label)
        if order_fields:
            create_order_objects(model, order_fields)
 def handle(self, *args, **options):
     label = args[0]
     order_fields = is_orderable(label)
     if order_fields:
         create_order_objects(get_model(*label.split('.')), order_fields)
def post_syncdb(sender, created_models, **kwargs):
    for model in created_models:
        label = '.'.join([model._meta.app_label, model._meta.object_name])
        order_fields = is_orderable(label)
        if order_fields:
            create_order_objects(model, order_fields)