Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bug 741789] Stop using fixtures in access tests.

  • Loading branch information...
commit 499c3e971c39b6da8d6a5742d0e69f75e5a50079 1 parent 7269326
@rlr rlr authored
View
54 kitsune/access/tests/__init__.py
@@ -1,13 +1,13 @@
-from django.contrib.auth.models import User
+from django.contrib.contenttypes.models import ContentType
import test_utils
from authority.models import Permission
from nose.tools import eq_
from kitsune import access
-from kitsune.forums.models import Forum, Thread
from kitsune.sumo.tests import TestCase, with_save
from kitsune.sumo.urlresolvers import reverse
+from kitsune.users.tests import user
@with_save
@@ -16,47 +16,56 @@ def permission(**kwargs):
kwargs['approved'] = True
return Permission(**kwargs)
+
class AccessTests(TestCase):
"""Test stuff in access/__init__.py"""
- fixtures = ['users.json', 'posts.json', 'forums_permissions.json']
-
def setUp(self):
url = reverse('forums.threads', args=[u'test-forum'])
self.context = {'request': test_utils.RequestFactory().get(url)}
- self.forum_1 = Forum.objects.get(pk=1)
- self.forum_2 = Forum.objects.get(pk=2)
def test_admin_perm_thread(self):
"""Super user can do anything on any forum."""
- admin = User.objects.get(pk=1)
+ from kitsune.forums.tests import restricted_forum
+ f1 = restricted_forum()
+ f2 = restricted_forum()
+
+ admin = user(is_staff=True, is_superuser=True, save=True)
# Loop over all forums perms and both forums
perms = ('thread_edit_forum', 'thread_delete_forum', 'post_edit_forum',
'thread_sticky_forum', 'thread_locked_forum',
- 'post_delete_forum')
- forums = (self.forum_1, self.forum_2)
+ 'post_delete_forum', 'view_in_forum')
for perm in perms:
- for forum in forums:
+ for forum in [f1, f2]:
assert access.has_perm(admin, 'forums_forum.' + perm, forum)
def test_util_has_perm_or_owns_sanity(self):
"""Sanity check for access.has_perm_or_owns."""
- me = User.objects.get(pk=118533)
- my_t = Thread.objects.filter(creator=me)[0]
- other_t = Thread.objects.exclude(creator=me)[0]
+ from kitsune.forums.tests import thread
+ me = user(save=True)
+ my_t = thread(creator=me, save=True)
+ other_t = thread(save=True)
perm = 'forums_forum.thread_edit_forum'
- allowed = access.has_perm_or_owns(me, perm, my_t, self.forum_1)
+ allowed = access.has_perm_or_owns(me, perm, my_t, my_t.forum)
eq_(allowed, True)
- allowed = access.has_perm_or_owns(me, perm, other_t, self.forum_1)
+ allowed = access.has_perm_or_owns(me, perm, other_t, other_t.forum)
eq_(allowed, False)
def test_has_perm_per_object(self):
"""Assert has_perm checks per-object permissions correctly."""
- user = User.objects.get(pk=47963)
- perm = 'forums_forum.thread_edit_forum'
- assert access.has_perm(user, perm, self.forum_1)
- assert not access.has_perm(user, perm, self.forum_2)
+ from kitsune.forums.tests import restricted_forum
+ f1 = restricted_forum()
+ f2 = restricted_forum()
+
+ # Give user permission to one of the forums
+ u = user(save=True)
+ perm = 'forums_forum.view_in_forum'
+ ct = ContentType.objects.get_for_model(f1)
+ permission(codename=perm, content_type=ct,
+ object_id=f1.id, user=u, save=True)
+ assert access.has_perm(u, perm, f1)
+ assert not access.has_perm(u, perm, f2)
def test_perm_is_defined_on(self):
"""Test permission relationship
@@ -64,6 +73,9 @@ def test_perm_is_defined_on(self):
Test whether we check for permission relationship, independent
of whether the permission is actually assigned to anyone.
"""
+ from kitsune.forums.tests import forum, restricted_forum
+ f1 = restricted_forum()
+ f2 = forum(save=True)
perm = 'forums_forum.view_in_forum'
- assert access.perm_is_defined_on(perm, Forum.objects.get(pk=3))
- assert not access.perm_is_defined_on(perm, Forum.objects.get(pk=2))
+ assert access.perm_is_defined_on(perm, f1)
+ assert not access.perm_is_defined_on(perm, f2)
View
36 kitsune/access/tests/test_decorators.py
@@ -1,4 +1,4 @@
-from django.contrib.auth.models import User, AnonymousUser
+from django.contrib.auth.models import AnonymousUser
from django.http import HttpResponse
import test_utils
@@ -7,6 +7,7 @@
from kitsune.access.decorators import (
logout_required, login_required, permission_required)
from kitsune.sumo.tests import TestCase
+from kitsune.users.tests import user
def simple_view(request):
@@ -14,8 +15,6 @@ def simple_view(request):
class LogoutRequiredTestCase(TestCase):
- fixtures = ['users.json']
-
def test_logged_out_default(self):
request = test_utils.RequestFactory().get('/foo')
request.user = AnonymousUser()
@@ -25,14 +24,14 @@ def test_logged_out_default(self):
def test_logged_in_default(self):
request = test_utils.RequestFactory().get('/foo')
- request.user = User.objects.get(username='jsocol')
+ request.user = user(save=True)
view = logout_required(simple_view)
response = view(request)
eq_(302, response.status_code)
def test_logged_in_argument(self):
request = test_utils.RequestFactory().get('/foo')
- request.user = User.objects.get(username='jsocol')
+ request.user = user(save=True)
view = logout_required('/bar')(simple_view)
response = view(request)
eq_(302, response.status_code)
@@ -42,15 +41,13 @@ def test_no_redirect_ajax(self):
"""Ajax requests should not redirect."""
request = test_utils.RequestFactory().get('/foo')
request.META['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
- request.user = User.objects.get(username='jsocol')
+ request.user = user(save=True)
view = logout_required(simple_view)
response = view(request)
eq_(403, response.status_code)
class LoginRequiredTestCase(TestCase):
- fixtures = ['users.json']
-
def test_logged_out_default(self):
request = test_utils.RequestFactory().get('/foo')
request.user = AnonymousUser()
@@ -61,7 +58,7 @@ def test_logged_out_default(self):
def test_logged_in_default(self):
"""Active user login."""
request = test_utils.RequestFactory().get('/foo')
- request.user = User.objects.get(username='jsocol')
+ request.user = user(save=True)
view = login_required(simple_view)
response = view(request)
eq_(200, response.status_code)
@@ -69,10 +66,7 @@ def test_logged_in_default(self):
def test_logged_in_inactive(self):
"""Inactive user login not allowed by default."""
request = test_utils.RequestFactory().get('/foo')
- user = User.objects.get(username='rrosario')
- user.is_active = False
- user.save()
- request.user = user
+ request.user = user(is_active=False, save=True)
view = login_required(simple_view)
response = view(request)
eq_(302, response.status_code)
@@ -80,10 +74,7 @@ def test_logged_in_inactive(self):
def test_logged_in_inactive_allow(self):
"""Inactive user login explicitly allowed."""
request = test_utils.RequestFactory().get('/foo')
- user = User.objects.get(username='rrosario')
- user.is_active = False
- user.save()
- request.user = user
+ request.user = user(is_active=False, save=True)
view = login_required(simple_view, only_active=False)
response = view(request)
eq_(200, response.status_code)
@@ -99,8 +90,6 @@ def test_no_redirect_ajax(self):
class PermissionRequiredTestCase(TestCase):
- fixtures = ['users.json']
-
def test_logged_out_default(self):
request = test_utils.RequestFactory().get('/foo')
request.user = AnonymousUser()
@@ -110,7 +99,7 @@ def test_logged_out_default(self):
def test_logged_in_default(self):
request = test_utils.RequestFactory().get('/foo')
- request.user = User.objects.get(username='jsocol')
+ request.user = user(save=True)
view = permission_required('perm')(simple_view)
response = view(request)
eq_(403, response.status_code)
@@ -118,17 +107,14 @@ def test_logged_in_default(self):
def test_logged_in_inactive(self):
"""Inactive user is denied access."""
request = test_utils.RequestFactory().get('/foo')
- user = User.objects.get(username='admin')
- user.is_active = False
- user.save()
- request.user = user
+ request.user = user(is_active=False, save=True)
view = permission_required('perm')(simple_view)
response = view(request)
eq_(403, response.status_code)
def test_logged_in_admin(self):
request = test_utils.RequestFactory().get('/foo')
- request.user = User.objects.get(username='admin')
+ request.user = user(is_staff=True, is_superuser=True, save=True)
view = permission_required('perm')(simple_view)
response = view(request)
eq_(200, response.status_code)
View
139 kitsune/forums/fixtures/forums_permissions.json
@@ -1,139 +0,0 @@
-[
- {
- "pk": 1,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 1,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.thread_edit_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:39:57"
- }
- },
- {
- "pk": 2,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 1,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.post_edit_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- },
- {
- "pk": 3,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 1,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.post_delete_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- },
- {
- "pk": 4,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 1,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.thread_delete_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- },
- {
- "pk": 5,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 1,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.thread_sticky_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- },
- {
- "pk": 6,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-08-10 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 1,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.thread_move_forum",
- "approved": 1,
- "date_approved": "2010-08-10 10:37:22"
- }
- },
- {
- "pk": 7,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-08-10 10:37:22",
- "group": 1,
- "creator": 1,
- "object_id": 2,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.thread_move_forum",
- "approved": 1,
- "date_approved": "2010-08-10 10:37:22"
- }
- },
- {
- "pk": 8,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "creator": 1,
- "object_id": 3,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.view_in_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- },
- {
- "pk": 9,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "creator": 1,
- "object_id": 3,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.post_in_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- },
- {
- "pk": 10,
- "model": "authority.permission",
- "fields": {
- "date_requested": "2010-05-20 10:37:22",
- "creator": 1,
- "object_id": 4,
- "content_type": ["forums", "forum"],
- "codename": "forums_forum.post_in_forum",
- "approved": 1,
- "date_approved": "2010-05-20 10:37:22"
- }
- }
-]
View
441 kitsune/forums/fixtures/posts.json
@@ -1,441 +0,0 @@
-[
- {
- "pk": 1,
- "model": "forums.forum",
- "fields": {
- "name": "Test forum",
- "slug": "test-forum",
- "last_post": 25
- }
- },
- {
- "pk": 2,
- "model": "forums.forum",
- "fields": {
- "name": "Another Forum",
- "slug": "another-forum"
- }
- },
- {
- "pk": 3,
- "model": "forums.forum",
- "fields": {
- "name": "Restricted Forum",
- "slug": "restricted-forum"
- }
- },
- {
- "pk": 4,
- "model": "forums.forum",
- "fields": {
- "name": "Visible Restricted Forum",
- "slug": "visible",
- "last_post": 6
- }
- },
- {
- "pk": 7,
- "model": "forums.thread",
- "fields": {
- "is_sticky": false,
- "forum": 4,
- "created": "2011-03-28 16:04:42",
- "is_locked": false,
- "creator": 47963,
- "replies": 0,
- "title": "Thread in a visible restricted forum",
- "last_post": 6
- }
- },
- {
- "pk": 6,
- "model": "forums.thread",
- "fields": {
- "is_sticky": false,
- "forum": 3,
- "created": "2010-04-28 16:04:42",
- "is_locked": false,
- "creator": 118533,
- "replies": 0,
- "title": "Thread in a restricted forum"
- }
- },
- {
- "pk": 5,
- "model": "forums.thread",
- "fields": {
- "is_sticky": true,
- "forum": 2,
- "created": "2010-05-03 14:09:33",
- "is_locked": true,
- "creator": 47963,
- "replies": 0,
- "title": "Locked Sticky Thread",
- "last_post": 27
- }
- },
- {
- "pk": 4,
- "model": "forums.thread",
- "fields": {
- "is_sticky": false,
- "forum": 1,
- "created": "2010-05-04 14:09:33",
- "is_locked": true,
- "creator": 118533,
- "replies": 1,
- "title": "A thread with a very very long title that should get truncated in the breadcrumbs.",
- "last_post": 25
- }
- },
- {
- "pk": 3,
- "model": "forums.thread",
- "fields": {
- "is_sticky": false,
- "forum": 1,
- "created": "2010-05-04 14:05:50",
- "is_locked": true,
- "creator": 1,
- "replies": 0,
- "title": "Locked Thread",
- "last_post": 5
- }
- },
- {
- "pk": 2,
- "model": "forums.thread",
- "fields": {
- "is_sticky": true,
- "forum": 1,
- "created": "2010-05-04 14:02:16",
- "is_locked": false,
- "creator": 118533,
- "replies": 1,
- "title": "Sticky Thread",
- "last_post": 4
- }
- },
- {
- "pk": 1,
- "model": "forums.thread",
- "fields": {
- "is_sticky": true,
- "forum": 1,
- "created": "2010-04-28 16:04:42",
- "is_locked": false,
- "creator": 118533,
- "replies": 20,
- "title": "My first thread",
- "last_post": 24
- }
- },
- {
- "pk": 6,
- "model": "forums.post",
- "fields": {
- "content": "A post in a visible restricted thread",
- "updated": "2011-03-28 16:04:42",
- "created": "2011-03-28 16:04:42",
- "thread": 7,
- "author": 47963
- }
- },
- {
- "pk": 5,
- "model": "forums.post",
- "fields": {
- "content": "A post in a non-sticky thread",
- "updated": "2010-05-04 14:07:10",
- "created": "2010-05-04 14:06:56",
- "thread": 3,
- "author": 118533
- }
- },
- {
- "pk": 4,
- "model": "forums.post",
- "fields": {
- "content": "yet another post",
- "updated": "2010-05-04 14:04:31",
- "created": "2010-05-04 14:04:22",
- "thread": 2,
- "author": 1
- }
- },
- {
- "pk": 3,
- "model": "forums.post",
- "fields": {
- "content": "This is a sticky thread",
- "updated": "2010-05-04 14:02:45",
- "created": "2010-05-04 14:02:27",
- "thread": 2,
- "author": 118533
- }
- },
- {
- "pk": 2,
- "model": "forums.post",
- "fields": {
- "content": "test post with the word admin in it",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 6,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 7,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 8,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 9,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 10,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 11,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 12,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 13,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 14,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 15,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 16,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 17,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 18,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 19,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 20,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 21,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 22,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-28 16:08:28",
- "created": "2010-04-28 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 23,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-04-29 16:08:28",
- "created": "2010-04-29 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 24,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-05-01 16:08:28",
- "created": "2010-05-01 16:08:28",
- "thread": 1,
- "author": 118533
- }
- },
- {
- "pk": 27,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-05-04 13:08:28",
- "created": "2010-05-04 13:08:28",
- "thread": 5,
- "author": 47963
- }
- },
- {
- "pk": 26,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-05-02 16:08:28",
- "created": "2010-05-02 16:08:28",
- "thread": 4,
- "author": 118533
- }
- },
- {
- "pk": 25,
- "model": "forums.post",
- "fields": {
- "content": "test",
- "updated": "2010-05-21 16:08:28",
- "created": "2010-05-21 16:08:28",
- "thread": 4,
- "author": 118533
- }
- },
- {
- "pk": 1,
- "model": "forums.post",
- "fields": {
- "content": "This is a test post!",
- "updated": "2010-04-28 16:06:03",
- "created": "2010-04-28 16:05:13",
- "thread": 1,
- "author": 118533
- }
- }
-]
View
186 kitsune/sumo/fixtures/users.json
@@ -1,186 +0,0 @@
-[
- {
- "pk": 1,
- "model": "auth.group",
- "fields": {
- "name": "ForumsModerator",
- "permissions": []
- }
- },
- {
- "pk": 1,
- "model": "auth.user",
- "fields": {
- "username": "admin",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 1,
- "is_staff": 1,
- "last_login": "2010-01-01 00:00:00",
- "groups": [],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user1@nowhere",
- "date_joined": "2010-01-01 00:00:00"
- }
- },
- {
- "pk": 2,
- "model": "auth.user",
- "fields": {
- "username": "tagger",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 0,
- "is_staff": 0,
- "last_login": "2010-01-01 00:00:00",
- "groups": [],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user2@nowhere",
- "date_joined": "2010-01-01 00:00:00"
- }
- },
- {
- "pk": 47963,
- "model": "auth.user",
- "fields": {
- "username": "pcraciunoiu",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 0,
- "is_staff": 0,
- "last_login": "2010-04-13 10:20:21",
- "groups": [1],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user47963@nowhere",
- "date_joined": "2008-10-06 10:34:21"
- }
- },
- {
- "pk": 118533,
- "model": "auth.user",
- "fields": {
- "username": "jsocol",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 0,
- "is_staff": 0,
- "last_login": "2010-04-26 19:01:45",
- "groups": [],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user118533@nowhere",
- "date_joined": "2009-08-10 16:09:45"
- }
- },
- {
- "pk": 600,
- "model": "auth.user",
- "fields": {
- "username": "timw",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 0,
- "is_staff": 0,
- "last_login": "2010-06-29 10:20:21",
- "groups": [1],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user1583173@nowhere",
- "date_joined": "2010-06-29 10:20:21"
- }
- },
- {
- "pk": 118577,
- "model": "auth.user",
- "fields": {
- "username": "rrosario",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 0,
- "is_staff": 0,
- "last_login": "2010-06-29 10:20:21",
- "groups": [1],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user118577@nowhere",
- "date_joined": "2010-06-29 10:20:21"
- }
- },
- {
- "pk": 180054,
- "model": "auth.user",
- "fields": {
- "username": "AnonymousUser",
- "first_name": "",
- "last_name": "",
- "is_active": 1,
- "is_superuser": 0,
- "is_staff": 0,
- "last_login": "2010-08-13 15:04:35",
- "groups": [],
- "user_permissions": [],
- "password": "sha256$c0648bd9b3$2d78b7d0504eba77f16fdf168dd7df6b1416075d506faf472a25981c1b3ea781",
- "email": "user180054@nowhere",
- "date_joined": "2010-06-10 14:08:53"
- }
- },
- {
- "pk": 1,
- "model": "users.profile",
- "fields": {
- "user": 1
- }
- },
- {
- "pk": 2,
- "model": "users.profile",
- "fields": {
- "user": 2
- }
- },
- {
- "pk": 47963,
- "model": "users.profile",
- "fields": {
- "user": 47963
- }
- },
- {
- "pk": 118533,
- "model": "users.profile",
- "fields": {
- "user": 118533
- }
- },
- {
- "pk": 600,
- "model": "users.profile",
- "fields": {
- "user": 600
- }
- },
- {
- "pk": 118577,
- "model": "users.profile",
- "fields": {
- "user": 118577
- }
- },
- {
- "pk": 180054,
- "model": "users.profile",
- "fields": {
- "user": 180054
- }
- }
-]
-
Please sign in to comment.
Something went wrong with that request. Please try again.