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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -