I have a Model that I want to only link to one site. I'll use the documentation example:
from django.db import models
from django.contrib.sites.models import Site
class Article(models.Model):
# ...
site = models.ForeignKey(Site)
But in the admin for each site, all the objects show up, regardless of their site setting. I want to:
- Limit the admin changelist dataset to instances where the site is the current site
- Automatically set the new form with the current site set (and optionally hide it).
To complicate things, the model is also a adminsortable.Sortable
but I don't forsee that causing serious issues here.