Skip to content

Commit f86c95a

Browse files
committed
DEFAULT AUTOFIELD
1 parent 9ba8c06 commit f86c95a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gdpr_assist/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class PrivacyAnonymised(models.Model):
196196
Django supports object_id being of a different type to the related object -
197197
https://docs.djangoproject.com/en/3.1/ref/contrib/contenttypes/#generic-relations
198198
"""
199-
id = models.BigAutoField("ID", primary_key=True, auto_created=True) # to handle move to BigAutoField
199+
id = models.AutoField("ID", primary_key=True, auto_created=True) # to handle move to BigAutoField
200200
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
201201
object_id = models.CharField(max_length=36)
202202
anonymised_object = GenericForeignKey("content_type", "object_id")
@@ -346,7 +346,7 @@ class EventLog(models.Model):
346346
EVENT_ANONYMISE = "anonymise"
347347
EVENT_CHOICES = ((EVENT_DELETE, _("Delete")), (EVENT_ANONYMISE, _("Anonymise")))
348348

349-
id = models.BigAutoField("ID", primary_key=True, auto_created=True) # to handle move to BigAutoField
349+
id = models.AutoField("ID", primary_key=True, auto_created=True) # to handle move to BigAutoField
350350
event = models.CharField(
351351
max_length=max((len(k) for k, v in EVENT_CHOICES)), choices=EVENT_CHOICES
352352
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from setuptools import find_packages, setup
66

77

8-
VERSION = "1.4.7"
8+
VERSION = "1.4.8"
99

1010

1111
def read(fname):

0 commit comments

Comments
 (0)