Re: Change field and Admin meta class properties dynamically

2008-05-28 Thread Brian Rosner
> I just wonder if there exists a better and cleaner way of doing this. There is a better way, but that way doesn't exist in trunk of Django. The newforms-admin branch has removed the inner model admin class and has been abstracted in the form of a ModelAdmin. Check out [1] to learn more a

Change field and Admin meta class properties dynamically

2008-05-28 Thread Álvaro J. Iradier
Hi, I have a couple of questions for the list, I hope someone can help me. I have a model like: class ClientElement(models.Model): client_code = models.CharField(max_length = 10, default = get_client_code, editable = True, blank = False) name = models.CharField(