fix issues with django 3.2
This commit is contained in:
parent
0c321a06d0
commit
1b67dd5c45
2 changed files with 4 additions and 2 deletions
|
@ -40,6 +40,8 @@ class Tag(models.Model):
|
||||||
"""
|
"""
|
||||||
Based on django-taggit 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)
|
name = models.CharField(unique=True, blank=False, max_length=100)
|
||||||
|
|
||||||
# slug is autoset on save from name, never set it manually
|
# slug is autoset on save from name, never set it manually
|
||||||
|
@ -265,7 +267,7 @@ class ArchiveResultManager(models.Manager):
|
||||||
|
|
||||||
|
|
||||||
class ArchiveResult(models.Model):
|
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)
|
uuid = models.UUIDField(default=uuid.uuid4, editable=False)
|
||||||
|
|
||||||
snapshot = models.ForeignKey(Snapshot, on_delete=models.CASCADE)
|
snapshot = models.ForeignKey(Snapshot, on_delete=models.CASCADE)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -37,7 +37,7 @@ INSTALL_REQUIRES = [
|
||||||
# ./archivebox/vendor/
|
# ./archivebox/vendor/
|
||||||
"requests>=2.24.0",
|
"requests>=2.24.0",
|
||||||
"mypy-extensions>=0.4.3",
|
"mypy-extensions>=0.4.3",
|
||||||
"django>=3.1.3",
|
"django>=3.1.3,<3.2",
|
||||||
"django-extensions>=3.0.3",
|
"django-extensions>=3.0.3",
|
||||||
"dateparser",
|
"dateparser",
|
||||||
"ipython",
|
"ipython",
|
||||||
|
|
Loading…
Reference in a new issue