version bumps and migration to django 2.2
This commit is contained in:
@@ -23,7 +23,7 @@ class Migration(migrations.Migration):
|
||||
('delta', models.SmallIntegerField()),
|
||||
('nickmask', models.CharField(default='', max_length=200, blank=True)),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('key', models.ForeignKey(to='karma.KarmaKey')),
|
||||
('key', models.ForeignKey(to='karma.KarmaKey', on_delete=models.CASCADE)),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
@@ -115,7 +115,7 @@ class KarmaLogEntryManager(models.Manager):
|
||||
class KarmaLogEntry(models.Model):
|
||||
"""Track each karma increment/decrement."""
|
||||
|
||||
key = models.ForeignKey('KarmaKey')
|
||||
key = models.ForeignKey('KarmaKey', on_delete=models.CASCADE)
|
||||
delta = models.SmallIntegerField()
|
||||
nickmask = models.CharField(max_length=200, default='', blank=True)
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
Reference in New Issue
Block a user