@@ -0,0 +1,598 @@
+from django.core.management.base import BaseCommand%0Afrom django.core.mail import send_mail%0Afrom optparse import make_option%0Afrom  accounts.models import ObjectProfileLink%0A%0A%0Aclass Command(BaseCommand):%0A    help = %22Clear MakerScience%22%0A%0A    def handle(self, *args, **options):%0A%0A        #in some obscure cases, content_object become None and crash%0A        for o in ObjectProfileLink.objects.all():%0A            if o.content_object == None:%0A                print %22Clearing : %25s (%25s) - %25s %22 %25 (o.profile.get_full_name_or_username(), o.profile.user.email, o.get_level_display())%0A                o.delete()%0A

Add clear command