Django 1.11. I recently added the following module to myapp.models:
from django.db import models
from ordered_model.models import OrderedModel
from .songs import Song
class Service(models.Model):
name = models.CharField(max_len=200, unique=True)
date = models.DateField(blank=True)
items = models.ManyToManyField(ServiceItem)
class Meta:
ordering = ('-date', 'name')
class ServiceItem(OrderedModel):
item = models.ForeignKey(Song)
song_custom_order = models.CharField(max_len=50, blank=True)
order_with_respect_to = 'service'
class Meta(OrderedModel.Meta):
pass
I have other models in another module (in the same directory). When I run ./manage.py makemigrations
, the script finds my changes in my other module, but not in this one. FWIW, this module is all new code with no previous migration history.
Any ideas why these changes aren't getting picked up?