Thanks for you reply Mikhail,

I do use model managers but more often to get a certain defined
queryset back. Could you maybe show me a simple example of how to
implement your suggestion?

I imagine it looking something like this.

class PersonManager(models.Manager):
     def get_query_set(self):
          ??????? x = 1
          return super(type(self), self).get_query_set()

class Person(models.Model):
    name = models.CharField(.......)

    objects = models.Manager()
    compare_to_other = PersonManager()

Now without pulling the value out of the SQL database how do I add a
value?

The ?????? is where I am not sure of how to define a variable per sql
line.

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

Reply via email to