@ -9,8 +9,6 @@ sounds_info = {}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_sounds_info(apps, schema_editor):
 | 
					def get_sounds_info(apps, schema_editor):
 | 
				
			||||||
    global sounds
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    Sound = apps.get_model("aircox", "Sound")
 | 
					    Sound = apps.get_model("aircox", "Sound")
 | 
				
			||||||
    objs = Sound.objects.filter(episode__isnull=False).values(
 | 
					    objs = Sound.objects.filter(episode__isnull=False).values(
 | 
				
			||||||
        "pk",
 | 
					        "pk",
 | 
				
			||||||
@ -22,8 +20,6 @@ def get_sounds_info(apps, schema_editor):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def restore_sounds_info(apps, schema_editor):
 | 
					def restore_sounds_info(apps, schema_editor):
 | 
				
			||||||
    global sounds
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        Sound = apps.get_model("aircox", "Sound")
 | 
					        Sound = apps.get_model("aircox", "Sound")
 | 
				
			||||||
        EpisodeSound = apps.get_model("aircox", "EpisodeSound")
 | 
					        EpisodeSound = apps.get_model("aircox", "EpisodeSound")
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user