Monday, February 6, 2012

Re: same code runs on two machines and barfs on the third

Perhaps you made a change to a model and forgot to syncdb on your
Fedora 15 machine.....

On 2/7/12, kenneth gonsalves <lawgon@thenilgiris.com> wrote:
> hi,
>
> this is the relevant part of my model:
>
> class Team(models.Model):
> name = models.CharField(_("Team Name"),max_length=150,unique=True)
> members =
> tournament = models.ForeignKey(Tournament)
>
> in my view I have the following line of code:
> cr = Team.objects.filter(tournament_id=tournid)
>
> I have three installations of this app. All have the latest trunk (all
> the same version). The only difference between the three is that one is
> on Fedora 14, one on Fedora 15 and one on Fedora 16. Deployment is the
> same. All are on python 2.7 with slightly differing versions of
> postgresql. On Fedora 14 and 16 the code runs ok. On Fedora 15, django
> barfs saying:
> 'cannot resolve tournament_id into a field, fields available are: name,
> tournament ...'
>
> any clues?
> --
> regards
> Kenneth Gonsalves
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

--
Sent from my mobile device

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment