morango 0.7.1__py2.py3-none-any.whl → 0.8.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of morango might be problematic. Click here for more details.

Files changed (50) hide show
  1. morango/__init__.py +1 -6
  2. morango/api/viewsets.py +6 -1
  3. morango/apps.py +1 -2
  4. morango/constants/transfer_stages.py +1 -1
  5. morango/constants/transfer_statuses.py +1 -1
  6. morango/migrations/0001_initial.py +0 -2
  7. morango/migrations/0001_squashed_0024_auto_20240129_1757.py +583 -0
  8. morango/migrations/0002_auto_20170511_0400.py +0 -2
  9. morango/migrations/0003_auto_20170519_0543.py +0 -2
  10. morango/migrations/0004_auto_20170520_2112.py +0 -2
  11. morango/migrations/0005_auto_20170629_2139.py +0 -2
  12. morango/migrations/0006_instanceidmodel_system_id.py +0 -2
  13. morango/migrations/0007_auto_20171018_1615.py +0 -2
  14. morango/migrations/0008_auto_20171114_2217.py +0 -2
  15. morango/migrations/0009_auto_20171205_0252.py +0 -2
  16. morango/migrations/0010_auto_20171206_1615.py +0 -2
  17. morango/migrations/0011_sharedkey.py +0 -2
  18. morango/migrations/0012_auto_20180927_1658.py +0 -2
  19. morango/migrations/0013_auto_20190627_1513.py +0 -2
  20. morango/migrations/0014_syncsession_extra_fields.py +0 -2
  21. morango/migrations/0015_auto_20200508_2104.py +2 -3
  22. morango/migrations/0016_store_deserialization_error.py +2 -3
  23. morango/migrations/0017_store_last_transfer_session_id.py +1 -2
  24. morango/migrations/0018_auto_20210714_2216.py +2 -3
  25. morango/migrations/0019_auto_20220113_1807.py +2 -3
  26. morango/migrations/0020_postgres_fix_nullable.py +0 -2
  27. morango/migrations/0021_store_partition_index_create.py +0 -2
  28. morango/migrations/0022_rename_instance_fields.py +0 -2
  29. morango/migrations/0023_add_instance_id_fields.py +0 -2
  30. morango/migrations/0024_auto_20240129_1757.py +28 -0
  31. morango/models/__init__.py +0 -6
  32. morango/models/certificates.py +3 -9
  33. morango/models/core.py +13 -23
  34. morango/models/fields/crypto.py +4 -7
  35. morango/models/fields/uuids.py +2 -1
  36. morango/models/utils.py +5 -6
  37. morango/proquint.py +2 -3
  38. morango/registry.py +1 -32
  39. morango/sync/backends/utils.py +10 -11
  40. morango/sync/syncsession.py +7 -12
  41. morango/urls.py +3 -3
  42. morango/utils.py +2 -3
  43. {morango-0.7.1.dist-info → morango-0.8.1.dist-info}/METADATA +7 -7
  44. morango-0.8.1.dist-info/RECORD +78 -0
  45. {morango-0.7.1.dist-info → morango-0.8.1.dist-info}/WHEEL +1 -1
  46. morango/models/morango_mptt.py +0 -33
  47. morango-0.7.1.dist-info/RECORD +0 -77
  48. {morango-0.7.1.dist-info → morango-0.8.1.dist-info}/AUTHORS.md +0 -0
  49. {morango-0.7.1.dist-info → morango-0.8.1.dist-info}/LICENSE +0 -0
  50. {morango-0.7.1.dist-info → morango-0.8.1.dist-info}/top_level.txt +0 -0
morango/__init__.py CHANGED
@@ -1,6 +1 @@
1
- from __future__ import absolute_import
2
- from __future__ import print_function
3
- from __future__ import unicode_literals
4
-
5
- default_app_config = "morango.apps.MorangoConfig"
6
- __version__ = "0.7.1"
1
+ __version__ = "0.8.1"
morango/api/viewsets.py CHANGED
@@ -5,7 +5,7 @@ import uuid
5
5
 
6
6
  from django.core.exceptions import ValidationError
7
7
  from django.utils import timezone
8
- from ipware.ip import get_ip
8
+ from ipware import get_client_ip
9
9
  from rest_framework import mixins
10
10
  from rest_framework import pagination
11
11
  from rest_framework import response
@@ -60,6 +60,11 @@ session_controller = SessionController.build()
60
60
  session_controller.signals.connect(controller_signal_logger)
61
61
 
62
62
 
63
+ def get_ip(request):
64
+ client_ip, _ = get_client_ip(request)
65
+ return client_ip
66
+
67
+
63
68
  class CertificateChainViewSet(viewsets.ViewSet):
64
69
  permissions = (permissions.CertificatePushPermissions,)
65
70
 
morango/apps.py CHANGED
@@ -1,5 +1,3 @@
1
- from __future__ import unicode_literals
2
-
3
1
  from django.apps import AppConfig
4
2
 
5
3
  from morango.registry import session_middleware
@@ -9,6 +7,7 @@ from morango.registry import syncable_models
9
7
  class MorangoConfig(AppConfig):
10
8
  name = "morango"
11
9
  verbose_name = "Morango"
10
+ default_auto_field = "django.db.models.AutoField"
12
11
 
13
12
  def ready(self):
14
13
  from morango.models.signals import add_to_deleted_models # noqa: F401
@@ -1,7 +1,7 @@
1
1
  """
2
2
  This module contains constants representing the possible stages of a transfer session.
3
3
  """
4
- from django.utils.translation import ugettext_lazy as _
4
+ from django.utils.translation import gettext_lazy as _
5
5
 
6
6
  INITIALIZING = "initializing"
7
7
  SERIALIZING = "serializing"
@@ -1,7 +1,7 @@
1
1
  """
2
2
  This module contains constants representing the possible statuses of a transfer session stage.
3
3
  """
4
- from django.utils.translation import ugettext_lazy as _
4
+ from django.utils.translation import gettext_lazy as _
5
5
 
6
6
  PENDING = "pending"
7
7
  STARTED = "started"
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by Django 1.9 on 2017-05-08 23:42
3
- from __future__ import unicode_literals
4
-
5
3
  import django.db.models.deletion
6
4
  import django.utils.timezone
7
5
  from django.db import migrations
@@ -0,0 +1,583 @@
1
+ # Generated by Django 3.2.24 on 2024-06-25 21:45
2
+ import django.db.models.deletion
3
+ import django.db.models.manager
4
+ import django.utils.timezone
5
+ from django.db import migrations
6
+ from django.db import models
7
+
8
+ import morango.models.fields.crypto
9
+ import morango.models.fields.uuids
10
+
11
+
12
+ # morango.migrations.0020_postgres_fix_nullable
13
+ # is ignored in this squashed migration, as it is replaced by
14
+ # the original change made via an edit to the prior migration.
15
+ # morango.migrations.0021_store_partition_index_create
16
+ # is turned into a non-concurrent index creation operation, as
17
+ # this will only be run on a fresh database.
18
+
19
+
20
+ class Migration(migrations.Migration):
21
+
22
+ replaces = [
23
+ ("morango", "0001_initial"),
24
+ ("morango", "0002_auto_20170511_0400"),
25
+ ("morango", "0003_auto_20170519_0543"),
26
+ ("morango", "0004_auto_20170520_2112"),
27
+ ("morango", "0005_auto_20170629_2139"),
28
+ ("morango", "0006_instanceidmodel_system_id"),
29
+ ("morango", "0007_auto_20171018_1615"),
30
+ ("morango", "0008_auto_20171114_2217"),
31
+ ("morango", "0009_auto_20171205_0252"),
32
+ ("morango", "0010_auto_20171206_1615"),
33
+ ("morango", "0011_sharedkey"),
34
+ ("morango", "0012_auto_20180927_1658"),
35
+ ("morango", "0013_auto_20190627_1513"),
36
+ ("morango", "0014_syncsession_extra_fields"),
37
+ ("morango", "0015_auto_20200508_2104"),
38
+ ("morango", "0016_store_deserialization_error"),
39
+ ("morango", "0017_store_last_transfer_session_id"),
40
+ ("morango", "0018_auto_20210714_2216"),
41
+ ("morango", "0019_auto_20220113_1807"),
42
+ ("morango", "0020_postgres_fix_nullable"),
43
+ ("morango", "0021_store_partition_index_create"),
44
+ ("morango", "0022_rename_instance_fields"),
45
+ ("morango", "0023_add_instance_id_fields"),
46
+ ("morango", "0024_auto_20240129_1757"),
47
+ ]
48
+
49
+ initial = True
50
+
51
+ dependencies = []
52
+
53
+ operations = [
54
+ migrations.CreateModel(
55
+ name="DatabaseIDModel",
56
+ fields=[
57
+ (
58
+ "id",
59
+ morango.models.fields.uuids.UUIDField(
60
+ editable=False, primary_key=True, serialize=False
61
+ ),
62
+ ),
63
+ ("current", models.BooleanField(default=True)),
64
+ (
65
+ "date_generated",
66
+ models.DateTimeField(default=django.utils.timezone.now),
67
+ ),
68
+ ("initial_instance_id", models.CharField(blank=True, max_length=32)),
69
+ ],
70
+ options={
71
+ "abstract": False,
72
+ },
73
+ ),
74
+ migrations.CreateModel(
75
+ name="DatabaseMaxCounter",
76
+ fields=[
77
+ (
78
+ "id",
79
+ models.AutoField(
80
+ auto_created=True,
81
+ primary_key=True,
82
+ serialize=False,
83
+ verbose_name="ID",
84
+ ),
85
+ ),
86
+ ("instance_id", morango.models.fields.uuids.UUIDField()),
87
+ ("counter", models.IntegerField()),
88
+ ("partition", models.CharField(default="", max_length=128)),
89
+ ],
90
+ options={
91
+ "abstract": False,
92
+ "unique_together": {("instance_id", "partition")},
93
+ },
94
+ ),
95
+ migrations.CreateModel(
96
+ name="DeletedModels",
97
+ fields=[
98
+ (
99
+ "id",
100
+ morango.models.fields.uuids.UUIDField(
101
+ primary_key=True, serialize=False
102
+ ),
103
+ ),
104
+ ("profile", models.CharField(max_length=40)),
105
+ ],
106
+ ),
107
+ migrations.CreateModel(
108
+ name="Store",
109
+ fields=[
110
+ ("serialized", models.TextField(blank=True)),
111
+ ("deleted", models.BooleanField(default=False)),
112
+ ("last_saved_instance", morango.models.fields.uuids.UUIDField()),
113
+ ("last_saved_counter", models.IntegerField()),
114
+ ("model_name", models.CharField(max_length=40)),
115
+ ("profile", models.CharField(max_length=40)),
116
+ ("partition", models.TextField()),
117
+ (
118
+ "id",
119
+ morango.models.fields.uuids.UUIDField(
120
+ primary_key=True, serialize=False
121
+ ),
122
+ ),
123
+ ("conflicting_serialized_data", models.TextField(blank=True)),
124
+ ("_self_ref_fk", models.CharField(blank=True, max_length=32)),
125
+ ("dirty_bit", models.BooleanField(default=False)),
126
+ (
127
+ "source_id",
128
+ models.CharField(
129
+ max_length=96,
130
+ ),
131
+ ),
132
+ ("hard_deleted", models.BooleanField(default=False)),
133
+ ("deserialization_error", models.TextField(blank=True)),
134
+ (
135
+ "last_transfer_session_id",
136
+ morango.models.fields.uuids.UUIDField(
137
+ blank=True, db_index=True, default=None, null=True
138
+ ),
139
+ ),
140
+ ],
141
+ options={
142
+ "abstract": False,
143
+ },
144
+ ),
145
+ migrations.CreateModel(
146
+ name="SyncSession",
147
+ fields=[
148
+ (
149
+ "id",
150
+ morango.models.fields.uuids.UUIDField(
151
+ primary_key=True, serialize=False
152
+ ),
153
+ ),
154
+ (
155
+ "start_timestamp",
156
+ models.DateTimeField(default=django.utils.timezone.now),
157
+ ),
158
+ ("last_activity_timestamp", models.DateTimeField(blank=True)),
159
+ ("active", models.BooleanField(default=True)),
160
+ (
161
+ "connection_kind",
162
+ models.CharField(
163
+ choices=[('network', 'Network'), ('disk', 'Disk')],
164
+ max_length=10,
165
+ ),
166
+ ),
167
+ (
168
+ "connection_path",
169
+ models.CharField(
170
+ max_length=1000,
171
+ ),
172
+ ),
173
+ ("is_server", models.BooleanField(default=False)),
174
+ ("client_instance", models.TextField(default="{}")),
175
+ ("client_ip", models.CharField(blank=True, max_length=100)),
176
+ (
177
+ "profile",
178
+ models.CharField(
179
+ max_length=40,
180
+ ),
181
+ ),
182
+ ("server_instance", models.TextField(default="{}")),
183
+ ("server_ip", models.CharField(blank=True, max_length=100)),
184
+ ],
185
+ ),
186
+ migrations.CreateModel(
187
+ name="TransferSession",
188
+ fields=[
189
+ (
190
+ "id",
191
+ morango.models.fields.uuids.UUIDField(
192
+ primary_key=True, serialize=False
193
+ ),
194
+ ),
195
+ ("filter", models.TextField()),
196
+ ("push", models.BooleanField()),
197
+ ("active", models.BooleanField(default=True)),
198
+ ("records_total", models.IntegerField(blank=True, null=True)),
199
+ (
200
+ "sync_session",
201
+ models.ForeignKey(
202
+ on_delete=django.db.models.deletion.CASCADE,
203
+ to="morango.syncsession",
204
+ ),
205
+ ),
206
+ (
207
+ "last_activity_timestamp",
208
+ models.DateTimeField(
209
+ blank=True,
210
+ ),
211
+ ),
212
+ ("client_fsic", models.TextField(blank=True, default="{}")),
213
+ ("records_transferred", models.IntegerField(default=0)),
214
+ ("server_fsic", models.TextField(blank=True, default="{}")),
215
+ (
216
+ "start_timestamp",
217
+ models.DateTimeField(default=django.utils.timezone.now),
218
+ ),
219
+ (
220
+ "bytes_received",
221
+ models.BigIntegerField(blank=True, default=0, null=True),
222
+ ),
223
+ (
224
+ "bytes_sent",
225
+ models.BigIntegerField(blank=True, default=0, null=True),
226
+ ),
227
+ (
228
+ "transfer_stage",
229
+ models.CharField(
230
+ blank=True,
231
+ choices=[
232
+ ("initializing", "Initializing"),
233
+ ("serializing", "Serializing"),
234
+ ("queuing", "Queuing"),
235
+ ("transferring", "Transferring"),
236
+ ("dequeuing", "Dequeuing"),
237
+ ("deserializing", "Deserializing"),
238
+ ("cleanup", "Cleanup"),
239
+ ],
240
+ max_length=20,
241
+ null=True,
242
+ ),
243
+ ),
244
+ (
245
+ "transfer_stage_status",
246
+ models.CharField(
247
+ blank=True,
248
+ choices=[
249
+ ("pending", "Pending"),
250
+ ("started", "Started"),
251
+ ("completed", "Completed"),
252
+ ("errored", "Errored"),
253
+ ],
254
+ max_length=20,
255
+ null=True,
256
+ ),
257
+ ),
258
+ ],
259
+ ),
260
+ migrations.CreateModel(
261
+ name="ScopeDefinition",
262
+ fields=[
263
+ ("profile", models.CharField(max_length=20)),
264
+ ("version", models.IntegerField()),
265
+ (
266
+ "id",
267
+ models.CharField(max_length=20, primary_key=True, serialize=False),
268
+ ),
269
+ ("description", models.TextField()),
270
+ ("read_filter_template", models.TextField()),
271
+ ("write_filter_template", models.TextField()),
272
+ ("read_write_filter_template", models.TextField()),
273
+ (
274
+ "primary_scope_param_key",
275
+ models.CharField(blank=True, max_length=20),
276
+ ),
277
+ ],
278
+ ),
279
+ migrations.CreateModel(
280
+ name="RecordMaxCounterBuffer",
281
+ fields=[
282
+ (
283
+ "id",
284
+ models.AutoField(
285
+ auto_created=True,
286
+ primary_key=True,
287
+ serialize=False,
288
+ verbose_name="ID",
289
+ ),
290
+ ),
291
+ ("instance_id", morango.models.fields.uuids.UUIDField()),
292
+ ("counter", models.IntegerField()),
293
+ ("model_uuid", morango.models.fields.uuids.UUIDField(db_index=True)),
294
+ (
295
+ "transfer_session",
296
+ models.ForeignKey(
297
+ on_delete=django.db.models.deletion.CASCADE,
298
+ to="morango.transfersession",
299
+ ),
300
+ ),
301
+ ],
302
+ options={
303
+ "abstract": False,
304
+ },
305
+ ),
306
+ migrations.CreateModel(
307
+ name="Certificate",
308
+ fields=[
309
+ (
310
+ "id",
311
+ morango.models.fields.uuids.UUIDField(
312
+ primary_key=True, serialize=False
313
+ ),
314
+ ),
315
+ ("profile", models.CharField(max_length=20)),
316
+ ("scope_version", models.IntegerField()),
317
+ ("scope_params", models.TextField()),
318
+ ("public_key", morango.models.fields.crypto.PublicKeyField()),
319
+ ("serialized", models.TextField()),
320
+ ("signature", models.TextField()),
321
+ (
322
+ "private_key",
323
+ morango.models.fields.crypto.PrivateKeyField(blank=True, null=True),
324
+ ),
325
+ ("lft", models.PositiveIntegerField(editable=False)),
326
+ ("rght", models.PositiveIntegerField(editable=False)),
327
+ ("tree_id", models.PositiveIntegerField(db_index=True, editable=False)),
328
+ ("level", models.PositiveIntegerField(editable=False)),
329
+ (
330
+ "parent",
331
+ models.ForeignKey(
332
+ blank=True,
333
+ null=True,
334
+ on_delete=django.db.models.deletion.CASCADE,
335
+ to="morango.certificate",
336
+ ),
337
+ ),
338
+ (
339
+ "scope_definition",
340
+ models.ForeignKey(
341
+ on_delete=django.db.models.deletion.CASCADE,
342
+ to="morango.scopedefinition",
343
+ ),
344
+ ),
345
+ ],
346
+ options={
347
+ "abstract": False,
348
+ },
349
+ ),
350
+ migrations.CreateModel(
351
+ name="RecordMaxCounter",
352
+ fields=[
353
+ (
354
+ "id",
355
+ models.AutoField(
356
+ auto_created=True,
357
+ primary_key=True,
358
+ serialize=False,
359
+ verbose_name="ID",
360
+ ),
361
+ ),
362
+ ("instance_id", morango.models.fields.uuids.UUIDField()),
363
+ ("counter", models.IntegerField()),
364
+ (
365
+ "store_model",
366
+ models.ForeignKey(
367
+ on_delete=django.db.models.deletion.CASCADE, to="morango.store"
368
+ ),
369
+ ),
370
+ ],
371
+ options={
372
+ "unique_together": {("store_model", "instance_id")},
373
+ },
374
+ ),
375
+ migrations.AlterModelManagers(
376
+ name="certificate",
377
+ managers=[
378
+ ("objects", django.db.models.manager.Manager()),
379
+ ],
380
+ ),
381
+ migrations.AlterField(
382
+ model_name="certificate",
383
+ name="id",
384
+ field=morango.models.fields.uuids.UUIDField(
385
+ editable=False, primary_key=True, serialize=False
386
+ ),
387
+ ),
388
+ migrations.AlterModelManagers(
389
+ name="certificate",
390
+ managers=[],
391
+ ),
392
+ migrations.RenameField(
393
+ model_name="certificate",
394
+ old_name="private_key",
395
+ new_name="_private_key",
396
+ ),
397
+ migrations.AlterField(
398
+ model_name="certificate",
399
+ name="_private_key",
400
+ field=morango.models.fields.crypto.PrivateKeyField(
401
+ blank=True, db_column="private_key", null=True
402
+ ),
403
+ ),
404
+ migrations.CreateModel(
405
+ name="Nonce",
406
+ fields=[
407
+ (
408
+ "id",
409
+ morango.models.fields.uuids.UUIDField(
410
+ editable=False, primary_key=True, serialize=False
411
+ ),
412
+ ),
413
+ ("timestamp", models.DateTimeField(default=django.utils.timezone.now)),
414
+ ("ip", models.CharField(blank=True, max_length=100)),
415
+ ],
416
+ options={
417
+ "abstract": False,
418
+ },
419
+ ),
420
+ migrations.AddField(
421
+ model_name="certificate",
422
+ name="salt",
423
+ field=models.CharField(blank=True, max_length=32),
424
+ ),
425
+ migrations.AddField(
426
+ model_name="syncsession",
427
+ name="client_certificate",
428
+ field=models.ForeignKey(
429
+ blank=True,
430
+ null=True,
431
+ on_delete=django.db.models.deletion.CASCADE,
432
+ related_name="syncsessions_client",
433
+ to="morango.certificate",
434
+ ),
435
+ ),
436
+ migrations.AddField(
437
+ model_name="syncsession",
438
+ name="server_certificate",
439
+ field=models.ForeignKey(
440
+ blank=True,
441
+ null=True,
442
+ on_delete=django.db.models.deletion.CASCADE,
443
+ related_name="syncsessions_server",
444
+ to="morango.certificate",
445
+ ),
446
+ ),
447
+ migrations.CreateModel(
448
+ name="InstanceIDModel",
449
+ fields=[
450
+ (
451
+ "id",
452
+ morango.models.fields.uuids.UUIDField(
453
+ editable=False, primary_key=True, serialize=False
454
+ ),
455
+ ),
456
+ ("platform", models.TextField()),
457
+ ("hostname", models.TextField()),
458
+ ("sysversion", models.TextField()),
459
+ ("node_id", models.CharField(blank=True, max_length=20)),
460
+ ("counter", models.IntegerField(default=0)),
461
+ ("current", models.BooleanField(default=True)),
462
+ ("db_path", models.CharField(max_length=1000)),
463
+ (
464
+ "database",
465
+ models.ForeignKey(
466
+ on_delete=django.db.models.deletion.CASCADE,
467
+ to="morango.databaseidmodel",
468
+ ),
469
+ ),
470
+ ("system_id", models.CharField(blank=True, max_length=100)),
471
+ ],
472
+ options={
473
+ "abstract": False,
474
+ },
475
+ ),
476
+ migrations.CreateModel(
477
+ name="SharedKey",
478
+ fields=[
479
+ (
480
+ "id",
481
+ models.AutoField(
482
+ auto_created=True,
483
+ primary_key=True,
484
+ serialize=False,
485
+ verbose_name="ID",
486
+ ),
487
+ ),
488
+ ("public_key", morango.models.fields.crypto.PublicKeyField()),
489
+ ("private_key", morango.models.fields.crypto.PrivateKeyField()),
490
+ ("current", models.BooleanField(default=True)),
491
+ ],
492
+ ),
493
+ migrations.CreateModel(
494
+ name="HardDeletedModels",
495
+ fields=[
496
+ (
497
+ "id",
498
+ morango.models.fields.uuids.UUIDField(
499
+ primary_key=True, serialize=False
500
+ ),
501
+ ),
502
+ ("profile", models.CharField(max_length=40)),
503
+ ],
504
+ ),
505
+ migrations.CreateModel(
506
+ name="Buffer",
507
+ fields=[
508
+ (
509
+ "id",
510
+ models.AutoField(
511
+ auto_created=True,
512
+ primary_key=True,
513
+ serialize=False,
514
+ verbose_name="ID",
515
+ ),
516
+ ),
517
+ ("serialized", models.TextField(blank=True)),
518
+ ("deleted", models.BooleanField(default=False)),
519
+ ("last_saved_instance", morango.models.fields.uuids.UUIDField()),
520
+ ("last_saved_counter", models.IntegerField()),
521
+ ("model_name", models.CharField(max_length=40)),
522
+ ("profile", models.CharField(max_length=40)),
523
+ ("partition", models.TextField()),
524
+ ("model_uuid", morango.models.fields.uuids.UUIDField()),
525
+ (
526
+ "transfer_session",
527
+ models.ForeignKey(
528
+ on_delete=django.db.models.deletion.CASCADE,
529
+ to="morango.transfersession",
530
+ ),
531
+ ),
532
+ ("conflicting_serialized_data", models.TextField(blank=True)),
533
+ ("_self_ref_fk", models.CharField(blank=True, max_length=32)),
534
+ (
535
+ "source_id",
536
+ models.CharField(
537
+ max_length=96,
538
+ ),
539
+ ),
540
+ ("hard_deleted", models.BooleanField(default=False)),
541
+ ],
542
+ options={
543
+ "abstract": False,
544
+ "unique_together": {("transfer_session", "model_uuid")},
545
+ },
546
+ ),
547
+ migrations.AddField(
548
+ model_name="syncsession",
549
+ name="extra_fields",
550
+ field=models.TextField(default="{}"),
551
+ ),
552
+ migrations.AddField(
553
+ model_name="syncsession",
554
+ name="process_id",
555
+ field=models.IntegerField(blank=True, null=True),
556
+ ),
557
+ migrations.AddIndex(
558
+ model_name="store",
559
+ index=models.Index(
560
+ fields=["partition"], name="idx_morango_store_partition"
561
+ ),
562
+ ),
563
+ migrations.RenameField(
564
+ model_name="syncsession",
565
+ old_name="client_instance",
566
+ new_name="client_instance_json",
567
+ ),
568
+ migrations.RenameField(
569
+ model_name="syncsession",
570
+ old_name="server_instance",
571
+ new_name="server_instance_json",
572
+ ),
573
+ migrations.AddField(
574
+ model_name="syncsession",
575
+ name="client_instance_id",
576
+ field=models.UUIDField(blank=True, null=True),
577
+ ),
578
+ migrations.AddField(
579
+ model_name="syncsession",
580
+ name="server_instance_id",
581
+ field=models.UUIDField(blank=True, null=True),
582
+ ),
583
+ ]
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by Django 1.9.7 on 2017-05-11 04:00
3
- from __future__ import unicode_literals
4
-
5
3
  import django.db.models.manager
6
4
  from django.db import migrations
7
5
  from django.db import models
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by Django 1.9 on 2017-05-19 05:43
3
- from __future__ import unicode_literals
4
-
5
3
  from django.db import migrations
6
4
  from django.db import models
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by Django 1.9 on 2017-05-20 21:12
3
- from __future__ import unicode_literals
4
-
5
3
  from django.db import migrations
6
4
 
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by Django 1.9.7 on 2017-06-29 21:39
3
- from __future__ import unicode_literals
4
-
5
3
  from django.db import migrations
6
4
 
7
5
  import morango.models.fields.crypto