Re: Many to one screwed up in admin

2006-03-18 Thread Kenneth Gonsalves
On Saturday 18 Mar 2006 4:12 pm, Todd O'Bryan wrote: > class Datum(meta.Model): >      kind = meta.IntegerField(choices=DATUM_KINDS) >      numericValue = meta.IntegerField(blank=True, null=True) >      textValue = meta.TextField(blank=True) >      question = meta.ForeignKey(Question, > edit_inlin

Re: Many to one screwed up in admin

2006-03-18 Thread Todd O'Bryan
from django.core import meta from django.models.auth import User QUESTION_KINDS = ( (0, 'Multiple Choice'), (1, 'Fill in the Blank'), ) DATUM_KINDS = ( (0, 'Text'), (1, 'Possible Answer'), (2, 'Correct Answer'), (3, 'Explanation'), ) # Create your models here. clas

Re: Many to one screwed up in admin

2006-03-17 Thread Kenneth Gonsalves
On Saturday 18 Mar 2006 9:25 am, Todd O'Bryan wrote: > Any idea what might be up? post/paste your models -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க! --~--~-~--~~~---~--~~ You received this message becaus

Many to one screwed up in admin

2006-03-17 Thread Todd O'Bryan
I have a Question class. I also have a QuestionDatum class that has Question as a ForeignKey field (possible multiple choice answers, correct answer, the question text, etc., are stored in QuestionDatum objects). I'm trying to edit these using the admin interface. I've set up edit_inline, a