old_contents: # -*- coding: utf-8 -*-
  #########################################################################
  #
  # Copyright (C) 2016 OSGeo
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
  #
  #########################################################################
  
  from __future__ import unicode_literals
  
  from django.db import migrations, models
  import datetime
  from django.conf import settings
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('contenttypes', '0002_remove_content_type_name'),
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('name', models.CharField(max_length=100)),
                  ('email', models.CharField(max_length=255, blank=True)),
                  ('website', models.CharField(max_length=255, blank=True)),
                  ('object_id', models.IntegerField()),
                  ('comment', models.TextField()),
                  ('submit_date', models.DateTimeField(default=datetime.datetime.now)),
                  ('ip_address', models.IPAddressField(null=True)),
                  ('public', models.BooleanField(default=True)),
                  ('author', models.ForeignKey(related_name='comments', to=settings.AUTH_USER_MODEL, null=True)),
                  ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
              ],
          ),
      ]
  
new_contents: # -*- coding: utf-8 -*-
  #########################################################################
  #
  # Copyright (C) 2016 OSGeo
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
  #
  #########################################################################
  
  from __future__ import unicode_literals
  
  from django.db import migrations, models
  import datetime
  from django.conf import settings
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('contenttypes', '0002_remove_content_type_name'),
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('name', models.CharField(max_length=100)),
                  ('email', models.CharField(max_length=255, blank=True)),
                  ('website', models.CharField(max_length=255, blank=True)),
                  ('object_id', models.IntegerField()),
                  ('comment', models.TextField()),
                  ('submit_date', models.DateTimeField(default=datetime.datetime.now)),
                  ('ip_address', models.GenericIPAddressField(null=True)),
                  ('public', models.BooleanField(default=True)),
                  ('author', models.ForeignKey(related_name='comments', to=settings.AUTH_USER_MODEL, null=True)),
                  ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
              ],
          ),
      ]
  
subject: update initial migration with non-deprecated IP field (#3)