Add ip_address field
This commit is contained in:
parent
63821813d4
commit
e68e0b32f8
2 changed files with 21 additions and 0 deletions
20
datacenterlight/migrations/0032_contactus_ip_address.py
Normal file
20
datacenterlight/migrations/0032_contactus_ip_address.py
Normal file
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -118,6 +118,7 @@ class ContactUs(models.Model):
|
||||||
name = models.CharField(max_length=250)
|
name = models.CharField(max_length=250)
|
||||||
email = models.CharField(max_length=250)
|
email = models.CharField(max_length=250)
|
||||||
message = models.TextField()
|
message = models.TextField()
|
||||||
|
ip_address = models.TextField(default='', null=True)
|
||||||
field = models.DateTimeField(auto_now_add=True)
|
field = models.DateTimeField(auto_now_add=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in a new issue