'Make CreateModel statements for proxy models. Use the same statements
as that way there\'s less code duplication, but of course for proxy
models it\'s safe to skip all the pointless field stuff and just chuck
out an operation.'

def generate_created_proxies(self):

    added = set(self.new_proxy_keys).difference(self.old_proxy_keys)
    for (app_label, model_name) in sorted(added):
        model_state = self.to_state.models[(app_label, model_name)]
        assert model_state.options.get('proxy')
        dependencies = [(app_label, model_name, None, False)]
        for base in model_state.bases:
            if (isinstance(base, str) and ('.' in base)):
                (base_app_label, base_name) = base.split('.', 1)
                dependencies.append((base_app_label, base_name, None, True))
        self.add_operation(app_label, operations.CreateModel(name=model_state.name, fields=[], options=model_state.options, bases=model_state.bases, managers=model_state.managers), dependencies=dependencies)
