mirror of
https://github.com/etesync/server
synced 2025-04-16 16:36:06 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6ac5412104 | ||
![]() |
cc54a136f1 |
@ -342,7 +342,10 @@ def _create(data: CollectionIn, user: UserType):
|
|||||||
# TODO
|
# TODO
|
||||||
process_revisions_for_item(main_item, data.item.content)
|
process_revisions_for_item(main_item, data.item.content)
|
||||||
|
|
||||||
collection_type_obj, _ = models.CollectionType.objects.get_or_create(uid=data.collectionType, owner=user)
|
try:
|
||||||
|
collection_type_obj, _ = models.CollectionType.objects.get_or_create(uid=data.collectionType, owner=user)
|
||||||
|
except IntegrityError:
|
||||||
|
raise ValidationError("bad_collection_type", "collectionType is null")
|
||||||
|
|
||||||
models.CollectionMember(
|
models.CollectionMember(
|
||||||
collection=instance,
|
collection=instance,
|
||||||
|
@ -25,7 +25,7 @@ click==8.1.7
|
|||||||
# via
|
# via
|
||||||
# typer
|
# typer
|
||||||
# uvicorn
|
# uvicorn
|
||||||
django==4.2.13
|
django==4.2.14
|
||||||
# via -r requirements.in/base.txt
|
# via -r requirements.in/base.txt
|
||||||
dnspython==2.6.1
|
dnspython==2.6.1
|
||||||
# via email-validator
|
# via email-validator
|
||||||
|
Loading…
Reference in New Issue
Block a user