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)
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)
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()