Skip to content

Commit

Permalink
api: Specify serializers for events releated fields
Browse files Browse the repository at this point in the history
Oh my, I forgot to specify those so we were defaulting to
ModelSerializers.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Oct 22, 2015
1 parent 5dd854f commit d2b129d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions patchwork/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,7 @@ class EventLogSerializer(PatchworkModelSerializer):
class Meta:
model = EventLog
fields = ('name', 'event_time', 'series', 'user')
expand_serializers = {
'series': SeriesSerializer,
'user': UserSerializer,
}

0 comments on commit d2b129d

Please sign in to comment.