from django.db.models.signals import pre_save, pre_delete, post_save, post_delete
from django.dispatch import receiver
from . import models as matialvarezs_charge_controller_models
from . import settings
import os


"""
@receiver(post_delete, sender = matialvarezs_charge_controller_models.Model)
def post_delete(sender, **kwargs):	
	try:
		instance = kwargs['instance']
		os.remove( os.path.join(settings.MEDIA_ROOT, instance.file.name) )
	except Exception as e:
		pass
"""
