Hi all,
I have an articles model and I have a few questions.

1. Each article can have only one author. However, the admin site
shows a dropdown list of all authors. What I want to happen is for the
"author" field to be auto-filled by the id of the author currently
logged in and creating the article, with no selection possible. How do
I do this? "author" is, by the way, a foreign key into the author
table.

2. Another field of the article table is "media". An article can have
0 or more media files (pictures, zipped folders, mp3s, and so on)
attached to it. I want this to be an upload button. The problem is
that media is stored in its own table, so the admin site will offer a
select list of current media files instead of letting an author upload
a new file. How should this best be handled?

3. Finally, there is a "devices" table. An article must be associated
with one or more devices, for sorting purposes. Currently the devices
show as a multiple select list, but I want them to show as a column of
checkboxes instead. How do I change this in my model?

Thanks in advance!

-- 
Have a great day,
Alex (msg sent from GMail website)
mehg...@gmail.com; http://www.facebook.com/mehgcap

-- 
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