I'm not sure. It looks like the crash happens when creating the model in
the migration, not during the RunPython function. Could you create a
minimal project that reproduces the crash so I can step through it?
On Monday, October 24, 2016 at 3:22:18 PM UTC-4, dy...@dylan-jenkinson.nz
wrote:
>
>
Hi Tim,
Traceback is below.
As a temporary measure to get me going I have commented out the existing
migrations that added and removed the migrations. There is an initial
migration that adds the FK, a RunPython that checks for the FK to perform
some logic, and a migration to remove the FK. The
It might be that you've made a mistake such as importing a model for
RunPython rather than using apps.get_model(). Could you share the traceback?
On Friday, October 21, 2016 at 7:18:05 AM UTC-4, dy...@dylan-jenkinson.nz
wrote:
>
> Hi there,
>
> In one of our projects we have removed an old model
3 matches
Mail list logo