Remove redundant gen_rev_uid.

This commit is contained in:
Tom Hacohen 2020-04-16 12:56:42 +03:00
parent ca7d7dfd12
commit 1f97d1dbf7
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,11 @@
# Generated by Django 3.0.3 on 2020-03-12 18:49
from django.db import migrations
from django_etesync.serializers import generate_rev_uid
from django.utils.crypto import get_random_string
def generate_rev_uid(length=32):
return get_random_string(length)
def add_collection_main_item(apps, schema_editor):

View File

@ -17,17 +17,12 @@ import base64
from django.core.files.base import ContentFile
from django.contrib.auth import get_user_model
from django.db import transaction
from django.utils.crypto import get_random_string
from rest_framework import serializers
from . import models
User = get_user_model()
def generate_rev_uid(length=32):
return get_random_string(length)
def process_revisions_for_item(item, revision_data):
chunks_objs = []
chunks = revision_data.pop('chunks_relation')