I'm using django 1.02, Ubuntu 9.04, python 2.6.2

Issue: I am creating a simple application that allows users to upload
images.
I'm using the User from django.contrib.auth.models to manage my users.
For the image class, i have a ForeignKey to the user and a ImageField
to store my images

My application works perfectly, except that:
when the user uploads images, the images will be linked to the user
himself.
However, on the upload form, i have a option selection box where all
the usernames are selectable.

How do i fix the views.py, models.py such that the user can only
upload images using
his own username and at the same time, without having to select his
username from the dropdown selection box?

The following is my code:
http://dpaste.com/66944/

Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
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