Hi,

I was just fiddling around trying to get comments working in
magic-removal when I came across this in
django.contrib.contenttypes.models:

    def get_model_module(self):
        "Returns the Python model module for accessing this type of
content."
        return __import__('django.models.%s.%s' % (self.package_id,
self.python_module_name), '', '', [''])

I presume that the contenttypes stuff needs to be reworked a bit for
magic-removal since you can't import from
django.models.<package>.<module_name> any more.

I propose:
1. Get rid of the 'Package' model - is there any use for it now that
the magic has gone?
2. Replace ContentType's 'package' and 'python_module_name' fields with
a 'model' field.

Thoughts?

Jason

Reply via email to