Hello, can someone help?

I have a web app, that works pretty well just with the admin interface
! (very nice BTW)
This is a model I have:

class operation(models.Model):
        descr= models.TextField()
        data = models.DateField('giorno')
        time_spent = models.FloatField(max_digits=2, decimal_places=1,
help_text ='Usare il punto, non la virgola!')
        project = models.ForeignKey(project)
        job_type = models.ForeignKey(job_type)

        .....I need to add a logged_user here ....

I need to store also the 'user'  (the one that is logged in the admin
interface) which add a particular operation in my blog. I mean, the
user don't has to be choosed, but It has to be the one that is adding
the operation. I need that it works behind the scenes like the Welcome
message up right of any page: Welcome [user]...

Of course this is not only at the template level.

I have tried adding:
from django.contrib.auth.models import User  <----  at the top of my models.py
.........
user = models.ForeignKey(User)                  <----  after job_type
in my 'operation' model.

But this is not what I need, because every user need to store just
himself for any 'operation'
He do.  This way I obtain a drop down list with all the users and it's not good.

Sorry for my english, and thanks.

--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to