Calculating the /jsi18n/ link

2008-12-17 Thread Seemant Kulleen
Dear All, My admin site seems to be misbehaving. The datepicker and calendar widgets on the admin site don't show up. With the help of firebug, etc, I saw that the problem was that 'gettext' is not defined. Looking in the page source, I see this: > > http://media.kulleen.org/admin/js/core.js

unique_together

2006-10-19 Thread Seemant Kulleen
Hi All, RajeshD gave me a great pointer to the unique_together directive. So I tried it in my model: class Scripture( models.Model ): book = models.CharField (maxlength = 2, choices = constants.BIBLE_BOOKS) chapter = models.IntegerField () from_verse = models.IntegerField () to_

ForeignKey field with null = True and blank = True

2006-10-04 Thread Seemant Kulleen
Hi All, Now I'm at ForeignKey funkiness. So I have the Services model which has a ForeignKey field to the Sermon model. The funny thing is that if I choose a sermon object when I first create a new service object, all is well. If, on the other hand, I don't choose one, then it turns out that I

ManyToManyFields are not syncdb'able

2006-10-02 Thread Seemant Kulleen
Dear All, I've attached two files: people/models.py and services/models.py. I have two many-to-many relationships defined: one is between people and roles (each person can fill many roles, and each role can be filled by many people); and one is between each activity in the service (banner bearer,