Skip to content

Instantly share code, notes, and snippets.

@joshghent
Created December 22, 2016 01:09
Show Gist options
  • Save joshghent/2725c36f6bff89a237dda71d0c0ce0b5 to your computer and use it in GitHub Desktop.
Save joshghent/2725c36f6bff89a237dda71d0c0ce0b5 to your computer and use it in GitHub Desktop.
SWAPI migration
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('resources', '0004_editablemodel'),
]
operations = [
migrations.AddField(
model_name='film',
name='poster',
field=models.CharField(max_length=1000),
preserve_default=False,
),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment