def setUpTestData(cls):
        tag = Tag(name="Tag 1", slug="tag-1")
        tag.save()

        user = User.objects.create_user(username="******")
        for i in range(1, 4):
            tag.log_change(user, uuid.uuid4(), ObjectChangeAction.UPDATE)
예제 #2
0
    def setUpTestData(cls):
        tag = Tag(name="Tag 1", slug="tag-1")
        tag.save()

        user = User.objects.create_user(username="******")
        for i in range(1, 4):
            tag.log_change(user, uuid.uuid4(), OBJECT_CHANGE_ACTION_UPDATE)
예제 #3
0
    def setUpTestData(cls):
        tag = Tag(name="Tag 1", slug="tag-1")
        tag.save()

        user = User.objects.create_user(username="******")
        for i in range(1, 4):
            uid = uuid.uuid4()
            change = tag.get_change(ObjectChangeAction.UPDATE)
            change.user = user
            change.request_id = uid
            change.save()