Changing the "name" of a DB object & displaying the ID

2007-07-24 Thread Matt Williams
Dear All, I have a simple question, but can' find the answer in the docs. I have two classes, a & b, in my model.py file, related via a OneToOne. When I create an a, I would like to display its UID in the admin interface. I've tried adding idNumber = model.AutoField(primary_key=true) and

Getting values from a drop-down menu

2006-12-13 Thread Matt Williams
Dear All, I'm a newbie with Django, and have what is probably a very simple question. I'm trying to get the values from an html drop-down form. I've got a form like this: A B C D E with a method in views.py: ansQuestion(request): q = get_object_or_404(Question) answer = requ