Skip to content

Commit

Permalink
Need to explicitly allow_null for the assigned user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavin committed Jul 12, 2015
1 parent ea38049 commit ab0f6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrum/board/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validate_end(self, value):
class TaskSerializer(serializers.ModelSerializer):

assigned = serializers.SlugRelatedField(
slug_field=User.USERNAME_FIELD, required=False,
slug_field=User.USERNAME_FIELD, required=False, allow_null=True,
queryset=User.objects.all())
status_display = serializers.SerializerMethodField()
links = serializers.SerializerMethodField()
Expand Down

0 comments on commit ab0f6e8

Please sign in to comment.