添加UserSerailizer admin返回real_name

This commit is contained in:
zema1
2017-11-29 14:06:32 +08:00
parent 7ce13911a7
commit 13e3260fd3
5 changed files with 33 additions and 10 deletions

View File

@@ -71,9 +71,6 @@ class ProblemTagListAPITest(APITestCase):
ProblemTag.objects.create(name="name2")
resp = self.client.get(self.reverse("problem_tag_list_api"))
self.assertSuccess(resp)
resp_data = resp.data["data"]
self.assertEqual(resp_data[0]["name"], "name1")
self.assertEqual(resp_data[1]["name"], "name2")
class TestCaseUploadAPITest(APITestCase):