@task
def remove_incomplete_accounts(days=INCOMPLETE_ACC_MAX_DAYS):
 from mozillians.users.models import UserProfile
 now = (datetime.now() - timedelta(days=days))
 UserProfile.objects.filter(full_name='').filter(user__date_joined__lt=now).delete()

@ task def remove_incomplete_accounts ( days = INCOMPLETE_ACC_MAX_DAYS ) : from mozillians . users . models import UserProfile now = ( datetime . now ( ) - timedelta ( days = days ) ) UserProfile . objects . filter ( full_name = '' ) . filter ( user__date_joined__lt = now ) . delete ( )
remove incomplete accounts older than incomplete_acc_max_days old .