def METHOD_NAME(self):
    """field is not included in display json if user ip is removed"""
    test_link = reverse("misago:api:user-details", kwargs={"pk": self.user.pk})
    self.user.joined_from_ip = None
    self.user.save()
    response = self.client.get(test_link)
    self.assertEqual(response.json()["groups"], [])