Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
remove unused 'client_user', it should always be None
Browse files Browse the repository at this point in the history
  • Loading branch information
splatte committed May 23, 2012
1 parent cd726b8 commit 380a9ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion helpim/common/management/commands/hi_import_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def import_chats(self):
'started_at',
'subject',
'client_name',
'client_user',
'client_ip',
'client_blocked',
'client_blocked_at',
Expand Down
4 changes: 2 additions & 2 deletions helpim/common/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def test_import_users(self):
self.assertEqual(True, User.objects.filter(username__exact=careworker_user.username)[0].is_staff)

def test_import_chats(self):
defaults = { 'started_at': datetime(2012, 1, 3, 15, 0), 'subject': 'Subject', 'client_name': 'careseeker', 'client_user': None, 'client_ip': '112233', 'client_blocked': False, 'client_blocked_at': None, 'staff_name': 'bob', 'staff_user': 'bob', 'staff_ip': 'aabbcc', }
only_staff = HIChat(**self._updated_copy(defaults, {'subject': 'not-assigned', 'client_name': None, 'client_user': None, 'client_ip': None, 'client_blocked': None, 'client_blocked_at': None, }))
defaults = { 'started_at': datetime(2012, 1, 3, 15, 0), 'subject': 'Subject', 'client_name': 'careseeker', 'client_ip': '112233', 'client_blocked': False, 'client_blocked_at': None, 'staff_name': 'bob', 'staff_user': 'bob', 'staff_ip': 'aabbcc', }
only_staff = HIChat(**self._updated_copy(defaults, {'subject': 'not-assigned', 'client_name': None, 'client_ip': None, 'client_blocked': None, 'client_blocked_at': None, }))
blocked_client = HIChat(**self._updated_copy(defaults, {'subject': 'blocked-client', 'client_ip': 'xxyyzz', 'client_blocked': True, 'client_blocked_at': datetime(2000, 2, 2, 1, 1, 1), }))

obj = HIData(
Expand Down

0 comments on commit 380a9ec

Please sign in to comment.