I want to have a model that has a foreignkey to a model from another app.
The app can be one of many.

So far I've come up with a two field solution with:

model_type = ForeignKey(ContentType)
pk_field = PositiveIntegerField()


with an appropriate getter. Is there a better way to do this? It feels like
this has already been solved in a known "good" way.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANOQRbxmrch43CSciPSXNxsQh8EyWUWhKu4u2Rx%3DeJoRb0Zjsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to