# Path: djangozik/models.py
# class Song(models.Model):
#     title = models.CharField(max_length=250)
#     artist = models.ForeignKey(Artist, related_name="song")
#     style = models.ForeignKey(Style, related_name="song")
#     album = models.ForeignKey(Album, related_name="song")
#     filepath = models.CharField(max_length=256)
#     slug = models.SlugField(db_index=True)
# 
#     def save(self, *args, **kwargs):
#         self.slug = slugify(self.title)
#         super(Song, self).save(*args, **kwargs)
# 
#     def __unicode__(self):
#         return self.title
# 
#     class Meta:
#         ordering = ['title']


from django.core.management.base import NoArgsCommand
from djangozik.models import Song
from django.conf import settings
import os
# -*- coding: utf-8 -*-



class Command(NoArgsCommand):
    help = "Remove deleted songs from database."

    def handle_noargs(self, **options):

# Path: djangozik/models.py
# class Song(models.Model):
#     title = models.CharField(max_length=250)
#     artist = models.ForeignKey(Artist, related_name="song")
#     style = models.ForeignKey(Style, related_name="song")
#     album = models.ForeignKey(Album, related_name="song")
#     filepath = models.CharField(max_length=256)
#     slug = models.SlugField(db_index=True)
# 
#     def save(self, *args, **kwargs):
#         self.slug = slugify(self.title)
#         super(Song, self).save(*args, **kwargs)
# 
#     def __unicode__(self):
#         return self.title
# 
#     class Meta:
#         ordering = ['title']


# Path: djangozik/management/commands/cleansongs.py
from django.core.management.base import NoArgsCommand
from djangozik.models import Song
from django.conf import settings
import os

# -*- coding: utf-8 -*-



class Command(NoArgsCommand):
    help = "Remove deleted songs from database."

    def handle_noargs(self, **options):

        songs = Song.objects.all()