I'm not sure if this is the right way of describing it, but I would
like to add a model manager on a model during project loading.

This is what I am doing to add new functions to a class:

## in models.py ##
class customer(models.Model):
    customer_id = models.AutoField(primary_key=True)
    name = models.TextField(unique=True)
name = models.TextField(unique=True)


## in modelsdefs.py##

def unicode_name(self):
    return self.name

## in __init__.py ##

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to