Skip to content

Commit

Permalink
fixup!: accidental change
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Jan 15, 2025
1 parent ca5fa8f commit 7fa5bc0
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions kobo/apps/audit_log/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,7 @@ def get_date_created(self, audit_log):
return audit_log['date_created'].strftime('%Y-%m-%dT%H:%M:%SZ')


class ProjectHistoryLogSerializer(serializers.ModelSerializer):
user = serializers.HyperlinkedRelatedField(
queryset=get_user_model().objects.all(),
lookup_field='username',
view_name='user-kpi-detail',
)
date_created = serializers.SerializerMethodField()
username = serializers.SerializerMethodField()
class ProjectHistoryLogSerializer(AuditLogSerializer):

class Meta:
model = ProjectHistoryLog
Expand All @@ -94,9 +87,3 @@ class Meta:
'metadata',
'date_created',
)

def get_date_created(self, audit_log):
return audit_log.date_created.strftime('%Y-%m-%dT%H:%M:%SZ')

def get_username(self, audit_log):
return audit_log.user.username

0 comments on commit 7fa5bc0

Please sign in to comment.