Silly bug in ForiegnKey
|Reported by:||Eric Moritz||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This works when it probably shouldn't
from django.models import places ... class MyModel(meta.Model): place = meta.ForeignKey(places.Place)
If someone accidentally uses the app module's Place class in a foreign key, everything seems to work except the place object will not get the get_mymodel_... methods. It should throw an error if that occurs otherwise it's not obvious that something is wrong.