def handle_noargs(self, **options):
    nonprofits = Nonprofit.objects.filter()

    for n in nonprofits:
      uploaded_image = UploadedImage(user_id=n.user.id)

      if (n.image):
        uploaded_image.image = n.image
      if (n.image_small):
        uploaded_image.image_small = n.image_small
      if (n.image_medium):
        uploaded_image.image_medium = n.image_medium
      if (n.image_large):
        uploaded_image.image_large = n.image_large

      uploaded_image.save()
      n.uploaded_image = uploaded_image
      n.save()

      uploaded_cover = UploadedImage(user_id=n.user.id)

      if (n.cover):
        uploaded_cover.image = n.cover
        uploaded_cover.image_small = n.cover
        uploaded_cover.image_medium = n.cover
        uploaded_cover.image_large = n.cover

      uploaded_cover.save()
      n.uploaded_cover = uploaded_cover
      n.save()

      print(n.uploaded_image)
      print(n.user.slug)
    def handle_noargs(self, **options):
        projects = Project.objects.all()

        for p in projects:
            uploaded_image = UploadedImage(user_id=p.nonprofit.user.id)

            if p.image:
                uploaded_image.image = p.image

            if p.image_small:
                uploaded_image.image_small = p.image_small

            if p.image_medium:
                uploaded_image.image_medium = p.image_medium

            if p.image_large:
                uploaded_image.image_large = p.image_large

            uploaded_image.save()
            p.uploaded_image = uploaded_image
            p.save()

            print(p.slug)