Thanks Eduardo,
I've customised the migration that had south as below:-
# -*- coding: utf-8 -*-
#from south.utils import datetime_utils as datetime
#from south.db import db
#from south.v2 import SchemaMigration
from django.db import models
from django.db import migrations
class Migration(migrations.Migration):
def forwards(apps, schema_editor):
# Adding field 'Page.in_opd'
migrations.AddField(
model_name=u'pages_page',
name=u'in_opd',
field='django.db.models.fields.BooleanField',
preserve_default=False
)
def backwards(apps, schema_editor):
# Deleting field 'Page.in_opd'
migrations.RemoveField(
model_name=u'pages_page',
name=u'in_opd'
)
models = {
u'pages.link': {
'Meta': {'ordering': "(u'_order',)", 'object_name': 'Link',
'_ormbases': [u'pages.Page']},
u'page_ptr': ('django.db.models.fields.related.OneToOneField',
[], {'to': u"apps.get_model('pages.Page')", 'unique': 'True',
'primary_key': 'True'})
},
...
Is there anything am not doing right coz its not showing up for migration
with python manage.py migrate onepage..
On Thursday, January 28, 2016 at 6:08:35 PM UTC+3, Eduardo Rivas wrote:
>
> Django implemented built-in migrations with the release of 1.7, and South
> became obsolete. You will need to create standard migrations for the
> application to be compatible with Django 1.7+. The Django docs explain this
> with detail.
>
>
> https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.