﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33168	Meta.managed=False field not respected by makemigrations	Javier Domingo Cansino	nobody	"I have realised that Meta.managed field when set to False is not being respected by makemigrations, sample script to reproduce, relies on having django-admin in the path.

{{{
django-admin startproject sample
cd sample
python manage.py startapp unmanaged
echo 'from django.db import models

class ForeignUnmanagedTable(models.Model):
    rowid = models.AutoField(primary_key=True)

    class Meta:
        managed = False
        db_table = ""foreign_unmanaged_table""
' > unmanaged/models.py

sed -i '/.*django.contrib.staticfiles.*/a     ""unmanaged.apps.UnmanagedConfig"", ' sample/settings.py
python manage.py makemigrations
}}}
"	Cleanup/optimization	closed	Documentation	3.2	Normal	wontfix			Unreviewed	0	0	0	0	0	0
