analytics: Fix direct import of models in migrations.

This commit is contained in:
Rishi Gupta
2017-03-11 23:02:10 -08:00
committed by Tim Abbott
parent ebebd04587
commit 87981a2bf1
2 changed files with 12 additions and 10 deletions

View File

@@ -135,14 +135,6 @@ def do_delete_counts_at_hour(stat, end_time):
RealmCount.objects.filter(property=stat.property, end_time=end_time).delete()
InstallationCount.objects.filter(property=stat.property, end_time=end_time).delete()
def do_delete_count_stat(property):
# type: (str) -> None
UserCount.objects.filter(property=property).delete()
StreamCount.objects.filter(property=property).delete()
RealmCount.objects.filter(property=property).delete()
InstallationCount.objects.filter(property=property).delete()
FillState.objects.filter(property=property).delete()
def do_drop_all_analytics_tables():
# type: () -> None
UserCount.objects.all().delete()