Skip to content

Commit 1a982c9

Browse files
authored
Merge pull request #188 from thenewboston-developers/fixup
PendingBlock fixup
2 parents 39fbe6b + e71fdc0 commit 1a982c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

node/blockchain/migrations/0004_pendingblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Migration(migrations.Migration):
1515
migrations.CreateModel(
1616
name='PendingBlock',
1717
fields=[
18-
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
18+
('_id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
1919
('number', models.PositiveBigIntegerField()),
2020
('hash', models.CharField(max_length=128)),
2121
('body', models.BinaryField()),

node/blockchain/models/pending_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class PendingBlock(CustomModel):
99

10-
id = models.UUIDField(primary_key=True, default=uuid.uuid4) # noqa: A003
10+
_id = models.UUIDField(primary_key=True, default=uuid.uuid4) # noqa: A003
1111
number = models.PositiveBigIntegerField()
1212
hash = models.CharField(max_length=128) # noqa: A003
1313
body = models.BinaryField()

0 commit comments

Comments
 (0)