mezzanine - Get the site_id of the user_id in Django? -
i'm struggled this. looked through django documentation , couldn't find method site_id
of logged in user_id
sites framework.
i want build blogpost form , wan't include site_id
content user publish go particular site_id
.
the user have permissions publish 1 site_id.
to clarify:
- publish content
site_id
user_id belongs to.
is there way this?
a user not belong site. request does.
if, somehow, in django project sites owned users, should add new field user
model. this:
class myusermodel(...): ... blog = models.onetoonefield(site)
Comments
Post a Comment