fix: привязать пользователя к заявке на модерацию и вывести в админке
This commit is contained in:
1 parent
c681c724a5
commit
8cbf24bc40
4 files changed
+33
-2
No files matched your search
@@ -20,6 +20,12 @@ class ModerationRequest(models.Model):
|
||||
object_id = models.PositiveIntegerField('ID сущности')
|
||||
entity = GenericForeignKey('content_type', 'object_id')
|
||||
|
||||
user = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL, null=True, blank=True,
|
||||
on_delete=models.SET_NULL, related_name='moderation_requests',
|
||||
verbose_name='Пользователь',
|
||||
)
|
||||
|
||||
decision = models.CharField(
|
||||
'Решение', max_length=20, choices=Decision.choices,
|
||||
default=Decision.PENDING,
|
||||
|
||||
Reference in new issue
Block a user