diff --git a/pontoon/insights/admin.py b/pontoon/insights/admin.py index eac551e469..fce81ecfb0 100644 --- a/pontoon/insights/admin.py +++ b/pontoon/insights/admin.py @@ -2,7 +2,6 @@ from pontoon.insights.models import ( LocaleInsightsSnapshot, - ProjectInsightsSnapshot, ProjectLocaleInsightsSnapshot, ) @@ -22,21 +21,6 @@ class LocaleInsightsSnapshotAdmin(admin.ModelAdmin): ) -class ProjectInsightsSnapshotAdmin(admin.ModelAdmin): - search_fields = [ - "pk", - "project__slug", - "project__name", - ] - list_display = ( - "pk", - "project", - "created_at", - "completion", - "unreviewed_strings", - ) - - class ProjectLocaleInsightsSnapshotAdmin(admin.ModelAdmin): search_fields = [ "pk", @@ -56,5 +40,4 @@ class ProjectLocaleInsightsSnapshotAdmin(admin.ModelAdmin): admin.site.register(LocaleInsightsSnapshot, LocaleInsightsSnapshotAdmin) -admin.site.register(ProjectInsightsSnapshot, ProjectInsightsSnapshotAdmin) admin.site.register(ProjectLocaleInsightsSnapshot, ProjectLocaleInsightsSnapshotAdmin) diff --git a/pontoon/insights/migrations/0016_delete_projectinsightssnapshot.py b/pontoon/insights/migrations/0016_delete_projectinsightssnapshot.py new file mode 100644 index 0000000000..844ce8bf2f --- /dev/null +++ b/pontoon/insights/migrations/0016_delete_projectinsightssnapshot.py @@ -0,0 +1,15 @@ +# Generated by Django 4.2.17 on 2025-01-17 14:50 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("insights", "0015_fix_projectlocale_insights_data"), + ] + + operations = [ + migrations.DeleteModel( + name="ProjectInsightsSnapshot", + ), + ] diff --git a/pontoon/insights/models.py b/pontoon/insights/models.py index 02d0918389..e846d67d46 100644 --- a/pontoon/insights/models.py +++ b/pontoon/insights/models.py @@ -65,9 +65,5 @@ class LocaleInsightsSnapshot(InsightsSnapshot): locale = models.ForeignKey("base.Locale", models.CASCADE) -class ProjectInsightsSnapshot(InsightsSnapshot): - project = models.ForeignKey("base.Project", models.CASCADE) - - class ProjectLocaleInsightsSnapshot(InsightsSnapshot): project_locale = models.ForeignKey("base.ProjectLocale", models.CASCADE)