Wednesday, August 26, 2015

Re: Django 1.7 migrations: Adding one field to User`s model

On Wed, Aug 26, 2015, at 15:02, marcin.j.nowak@gmail.com wrote:
Thanks, Hugo.
 
My project already contains migrations. 
I've added migration with RunSQL. Monkey patch is detected for "django.contrib.auth" app, and Django tries to add migration in python egg (Django). 
I'm avoiding calling "makemigrations" without args (or "auth" as an argument). 
This is a Django migrations design problem... :(
 
BR,
Marcin
 
Oh, so the field you're adding in monkey patching contrib.auth.User?
IMHO, the design problem isn't django, but rather monkey-patching models itself. Maybe you'd be better of using a custom user model.
 
--
Hugo Osvaldo Barrera
 

No comments:

Post a Comment