The simplest thing is to to override the ForeignKeys too as it's done in
here:
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/models.py#L82

In the future we may add swappable models (as in django-freeradius) if we
deem the cost is worth the effort.

I hope it helps!

Federico

On Wed, Mar 14, 2018 at 12:43 PM <[email protected]> wrote:

> I'm trying to follow https://github.com/openwisp/django-netjsonconfig#id2
> to extend the django-netjsonconfig app, making my own concrete models for
> each abstract model, but it seems I have to set the app-label for each
> concrete model to django_netjsonconfig for foreign keys to work. However,
> that in turn breaks migration generation. How is this supposed to work?
> Django 2, if that matters.
>
> Is there somewhere a full/working example app that does this that I could
> look at?
>
> Thanks in advance,
> Egil
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to