From e68e0b32f866518e72954c46be9c3248ea0b88ab Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 11 Feb 2021 16:21:07 +0530 Subject: [PATCH] Add ip_address field --- .../migrations/0032_contactus_ip_address.py | 20 +++++++++++++++++++ datacenterlight/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 datacenterlight/migrations/0032_contactus_ip_address.py diff --git a/datacenterlight/migrations/0032_contactus_ip_address.py b/datacenterlight/migrations/0032_contactus_ip_address.py new file mode 100644 index 00000000..836fcc10 --- /dev/null +++ b/datacenterlight/migrations/0032_contactus_ip_address.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2021-02-11 10:12 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('datacenterlight', '0031_vmpricing_stripe_coupon_id'), + ] + + operations = [ + migrations.AddField( + model_name='contactus', + name='ip_address', + field=models.TextField(default='', null=True), + ), + ] diff --git a/datacenterlight/models.py b/datacenterlight/models.py index 64d785a2..a075fd66 100644 --- a/datacenterlight/models.py +++ b/datacenterlight/models.py @@ -118,6 +118,7 @@ class ContactUs(models.Model): name = models.CharField(max_length=250) email = models.CharField(max_length=250) message = models.TextField() + ip_address = models.TextField(default='', null=True) field = models.DateTimeField(auto_now_add=True) def __str__(self):