from __future__ import unicode_literals

from django.db import models, migrations
import datetime
from django.utils.timezone import utc


class Migration(migrations.Migration):

    dependencies = [
        ('discussion', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='discussionthread',
            name='updated',
            field=models.DateTimeField(default=datetime.datetime(2015, 7, 31, 15, 51, 36, 361733, tzinfo=utc), auto_now=True),
            preserve_default=False,
        ),
    ]

from __future__ import unicode_literals

from django.db import models, migrations
from django.utils import timezone


class Migration(migrations.Migration):

    dependencies = [
        ('discussion', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='discussionthread',
            name='updated',
            field=models.DateTimeField(default=timezone.now(), auto_now=True),
            preserve_default=False,
        ),
    ]

Fix because we're not timezone aware.
Fix because we're not timezone aware.

  from __future__ import unicode_literals
  
  from django.db import models, migrations
+ from django.utils import timezone
- import datetime
- from django.utils.timezone import utc
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('discussion', '0001_initial'),
      ]
  
      operations = [
          migrations.AddField(
              model_name='discussionthread',
              name='updated',
-             field=models.DateTimeField(default=datetime.datetime(2015, 7, 31, 15, 51, 36, 361733, tzinfo=utc), auto_now=True),
+             field=models.DateTimeField(default=timezone.now(), auto_now=True),
              preserve_default=False,
          ),
      ]
  
Fix because we're not timezone aware.
## Code Before:
from __future__ import unicode_literals

from django.db import models, migrations
import datetime
from django.utils.timezone import utc


class Migration(migrations.Migration):

    dependencies = [
        ('discussion', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='discussionthread',
            name='updated',
            field=models.DateTimeField(default=datetime.datetime(2015, 7, 31, 15, 51, 36, 361733, tzinfo=utc), auto_now=True),
            preserve_default=False,
        ),
    ]

## Instruction:
Fix because we're not timezone aware.
## Code After:
from __future__ import unicode_literals

from django.db import models, migrations
from django.utils import timezone


class Migration(migrations.Migration):

    dependencies = [
        ('discussion', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='discussionthread',
            name='updated',
            field=models.DateTimeField(default=timezone.now(), auto_now=True),
            preserve_default=False,
        ),
    ]
