Cascade-delete progress updates
Add a warning about it, and update test to confirm it works
This commit is contained in:
@ -42,7 +42,7 @@ class ReadThrough(BookWyrmModel):
|
||||
class ProgressUpdate(BookWyrmModel):
|
||||
''' Store progress through a book in the database. '''
|
||||
user = models.ForeignKey('User', on_delete=models.PROTECT)
|
||||
readthrough = models.ForeignKey('ReadThrough', on_delete=models.PROTECT)
|
||||
readthrough = models.ForeignKey('ReadThrough', on_delete=models.CASCADE)
|
||||
progress = models.IntegerField()
|
||||
mode = models.CharField(
|
||||
max_length=3,
|
||||
|
Reference in New Issue
Block a user