diff --git a/archivebox/core/models.py b/archivebox/core/models.py index a4e681b6..dd2b8802 100644 --- a/archivebox/core/models.py +++ b/archivebox/core/models.py @@ -40,6 +40,8 @@ class Tag(models.Model): """ Based on django-taggit model """ + id = models.AutoField(primary_key=True, serialize=False, verbose_name='ID') + name = models.CharField(unique=True, blank=False, max_length=100) # slug is autoset on save from name, never set it manually @@ -265,7 +267,7 @@ class ArchiveResultManager(models.Manager): class ArchiveResult(models.Model): - id = models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID') + id = models.AutoField(primary_key=True, serialize=False, verbose_name='ID') uuid = models.UUIDField(default=uuid.uuid4, editable=False) snapshot = models.ForeignKey(Snapshot, on_delete=models.CASCADE) diff --git a/setup.py b/setup.py index b4e198d8..ebfb9233 100755 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ INSTALL_REQUIRES = [ # ./archivebox/vendor/ "requests>=2.24.0", "mypy-extensions>=0.4.3", - "django>=3.1.3", + "django>=3.1.3,<3.2", "django-extensions>=3.0.3", "dateparser", "ipython",