Skip to content

Commit

Permalink
Remove serialize on model field
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Aug 16, 2024
1 parent 589516c commit ca3258c
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion plain-cache/plain/cache/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
("key", models.CharField(max_length=255, unique=True)),
Expand Down
2 changes: 0 additions & 2 deletions plain-flags/plain/flags/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
(
Expand Down Expand Up @@ -52,7 +51,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
(
Expand Down
3 changes: 0 additions & 3 deletions plain-models/plain/models/fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ def __init__(
rel=None,
default=NOT_PROVIDED,
editable=True,
serialize=True,
choices=None,
db_column=None,
db_tablespace=None,
Expand All @@ -192,7 +191,6 @@ def __init__(
self.is_relation = self.remote_field is not None
self.default = default
self.editable = editable
self.serialize = serialize
if isinstance(choices, ChoicesMeta):
choices = choices.choices
if isinstance(choices, collections.abc.Iterator):
Expand Down Expand Up @@ -530,7 +528,6 @@ def deconstruct(self):
"db_index": False,
"default": NOT_PROVIDED,
"editable": True,
"serialize": True,
"choices": None,
"db_column": None,
"db_comment": None,
Expand Down
1 change: 0 additions & 1 deletion plain-models/plain/models/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ def add_field(self, field, private=False):
def setup_pk(self, field):
if not self.pk and field.primary_key:
self.pk = field
field.serialize = False

def __repr__(self):
return "<Options for %s>" % self.object_name
Expand Down
1 change: 0 additions & 1 deletion plain-oauth/plain/oauth/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
Expand Down
1 change: 0 additions & 1 deletion plain-sessions/plain/sessions/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class Migration(migrations.Migration):
"session_key",
models.CharField(
max_length=40,
serialize=False,
primary_key=True,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="session",
name="session_key",
field=models.CharField(max_length=40, primary_key=True, serialize=False),
field=models.CharField(max_length=40, primary_key=True),
),
]
1 change: 0 additions & 1 deletion plain-worker/plain/worker/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Migration(migrations.Migration):
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
),
),
(
Expand Down

0 comments on commit ca3258c

Please sign in to comment.