Open rhblind opened 7 years ago
It seems like there's a missing migration.
(env) C:\Source\hospital>python manage.py makemigrations Migrations for 'fcm': 0002_auto_20161214_1238.py:
I think it's generally not advisable to have meta options on the abstract base model, I've relocated model meta options to the child model in my fork and that solved the issue (no migrations were needed).
EDIT Either that or inherit AbstractDevice's metaclass
class Device(AbstractDevice):
class Meta(AbstractDevice.Meta):
swappable = 'FCM_DEVICE_MODEL'
When using a custom Device model ie. like the one below,
makemigrations
want to create migrations for the original model.