Stub Models and orm

2 views
Skip to first unread message

Stephen Sundell

unread,
May 8, 2009, 5:35:20 PM5/8/09
to South Users, evan....@gmail.com
I am trying to use the orm to transfer data between models. I am
transferring between two apps, one called 'deals' and one called
'entities'. In the entities app I have a model called
'VerticalEntities', and in deals I have 'Deal'. The problem is that
in the data migration file the frozen models contains an entry for
'deals.deal' and its a stub. When I try to access orm['deals.Deal']
it tells me it is a stub and wont let me access attributes. I think
it is getting the model from this files frozen models and not the
frozen models in the deal application. Can someone help me out here?

Justin Lilly

unread,
May 8, 2009, 9:38:29 PM5/8/09
to south...@googlegroups.com, South Users, evan....@gmail.com
You need to specify the

--freeze deals

Flag when running the migration. You need to do this for any app that
isn't the current app (the one you're defining the migration for)

-justin



On May 8, 2009, at 5:35 PM, Stephen Sundell
Reply all
Reply to author
Forward
0 new messages