Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Default to current/all sites in admin (updated!)

This code sets the default sites for a sites ManyToMany property to Site.objects.all(), which makes sure you don't have to bother setting it for each item on a site.

This could easily be changed to Site.objects.get_current() to use the current site as default.

Don't be the product, buy the product!

Schweinderl