Thanks for helping on this Shawn...

My model definition looks like this:

class Sample(models.Model):
    met_type = models.ForeignKey(MetType, verbose_name='Meteorite
Type')
    sample_name = models.CharField(max_length=100,
verbose_name='Sample Name')
    sample_id = models.IntegerField(primary_key=True,
verbose_name='Sample ID')
    location = models.CharField(max_length=100,blank=True,null=True,
verbose_name='Location')
    fall_date = models.CharField(max_length=20,blank=True,null=True,
verbose_name='Fall Date')
    objects=models.Manager()
    class Meta:
        db_table = u'sample'
        ordering = ['sample_name']
    def __unicode__(self):
         #return unicode(self.sample_name)
         return self.sample_name




On May 10, 11:10 am, Shawn Milochik <sh...@milochik.com> wrote:
> What's your model look like?
>
> Did you add the foreign_key = True kwarg to the field in question?

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