diff --git a/kerrokantasi/models.py b/kerrokantasi/models.py index 673ac2c3..fa5dd5c2 100644 --- a/kerrokantasi/models.py +++ b/kerrokantasi/models.py @@ -16,7 +16,6 @@ class User(AbstractUser, SerializableMixin): {"name": "email"}, {"name": "has_strong_auth"}, {"name": "sectioncomments"}, - {"name": "voted_sectioncomments"}, {"name": "followed_hearings"}, {"name": "admin_organizations"}, {"name": "hearing_created"}, @@ -30,10 +29,6 @@ class User(AbstractUser, SerializableMixin): def sectioncomments(self): return [s.serialize() for s in SectionComment.objects.everything(created_by=self).iterator()] - @property - def voted_sectioncomments(self): - return [s.serialize() for s in self.voted_democracy_sectioncomment.everything().iterator()] - def __str__(self): return " - ".join([super().__str__(), self.get_display_name(), self.email]) diff --git a/kerrokantasi/tests/gdpr/test_gdpr_query.py b/kerrokantasi/tests/gdpr/test_gdpr_query.py index 43bcb396..9d365d7d 100644 --- a/kerrokantasi/tests/gdpr/test_gdpr_query.py +++ b/kerrokantasi/tests/gdpr/test_gdpr_query.py @@ -214,12 +214,6 @@ def _get_user_data(user: User) -> List[dict]: for comment in SectionComment.objects.everything(created_by=user).iterator() ], }, - { - "key": "VOTED_SECTIONCOMMENTS", - "value": [ - _get_section_comment_data(comment) for comment in user.voted_democracy_sectioncomment.everything() - ], - }, { "key": "FOLLOWED_HEARINGS", "children": [_get_hearing_data(hearing) for hearing in user.followed_hearings.all()],