1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Add IP address to migrations

This commit is contained in:
Yohann D'ANELLO
2020-02-27 14:47:34 +01:00
parent 079e423343
commit 2f51057f4c
2 changed files with 37 additions and 37 deletions

View File

@ -21,6 +21,12 @@ class Changelog(models.Model):
verbose_name=_('user'),
)
ip = models.GenericIPAddressField(
null=True,
blank=True,
verbose_name=_("IP Address")
)
model = models.ForeignKey(
ContentType,
on_delete=models.PROTECT,