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.