On Sat, Feb 21, 2009 at 16:04, Alex Gaynor <alex.gay...@gmail.com> wrote:

>
>
> On Sat, Feb 21, 2009 at 7:50 AM, TiNo <tin...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> I am trying to use a model from an app that is on my python path, but
>> not in the INSTALLED_APPS setting. But I can't get it to work.
>>
>> Why would I want this? DRY. I want to use parts (ex. the 'PhotoSize'
>> model) of a 3rd party app (ex. photologue), without it filling my
>> database with tables and installing itself in the admin interface, or
>> copying all the code.
>>
>> Is there a way to do this other than copy-pasting the model to my own
>> app?
>>
>> When I subclass the model and leave the app out of INSTALLED_APPS, it
>> just creates a model with a reference to a non-existing model/table.
>> Isn't this a bug?
>>
>> Thanks,
>>
>> Tino
>>
>>
> This isn't a bug.  The default inheritance scheme is to use multi table
> inheritance, sine the parent class's table doesn't exist your subclass's
> table can't have a relation to it, therefore it breaks down.


Ah, ok. Is what I am trying to do still possible though? In some way?

TiNo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to