Re: Let the model define the database with a custom router

2017-12-22 Thread gernot . cseh
I have the same problem as Stodge. What I know right know is that the method parameters of *allow_migrate* changed from *def allow_migrate(self, db, model) *to *def allow_migrate(self, db, app_label, model_name=None, **hints). *Since that change, you don't have any reference to a model class an

Dynamically adding a field to a model - via contribute_to_class

2017-09-12 Thread gernot . cseh
Hi, I don't know if crossposting with stackoverflow is allowed here but essentially my problem is explained in https://stackoverflow.com/questions/46162104/django-dynamic-model-fields-and-migrations. What I want to create is a custom ModelField of type DecimalField, that dynamically adds anoth