diff --git a/lyrics/management/commands/limpia_datos.py b/lyrics/management/commands/limpia_datos.py new file mode 100644 index 0000000..358353d --- /dev/null +++ b/lyrics/management/commands/limpia_datos.py @@ -0,0 +1,8 @@ +from django.core.management.base import BaseCommand +from lyrics.models import Album, Artista, Song + +class Command(BaseCommand): + def handle(self, *args, **options): + Album.objects.all().delete() + Artista.objects.all().delete() + Song.objects.all().delete()