Remove redundant gen_rev_uid.
This commit is contained in:
parent
ca7d7dfd12
commit
1f97d1dbf7
@ -1,7 +1,11 @@
|
|||||||
# Generated by Django 3.0.3 on 2020-03-12 18:49
|
# Generated by Django 3.0.3 on 2020-03-12 18:49
|
||||||
|
|
||||||
from django.db import migrations
|
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):
|
def add_collection_main_item(apps, schema_editor):
|
||||||
|
@ -17,17 +17,12 @@ import base64
|
|||||||
from django.core.files.base import ContentFile
|
from django.core.files.base import ContentFile
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
from django.utils.crypto import get_random_string
|
|
||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
from . import models
|
from . import models
|
||||||
|
|
||||||
User = get_user_model()
|
User = get_user_model()
|
||||||
|
|
||||||
|
|
||||||
def generate_rev_uid(length=32):
|
|
||||||
return get_random_string(length)
|
|
||||||
|
|
||||||
|
|
||||||
def process_revisions_for_item(item, revision_data):
|
def process_revisions_for_item(item, revision_data):
|
||||||
chunks_objs = []
|
chunks_objs = []
|
||||||
chunks = revision_data.pop('chunks_relation')
|
chunks = revision_data.pop('chunks_relation')
|
||||||
|
Loading…
Reference in New Issue
Block a user