hi radovan

yes i am setting these in admin. The Book table(model) are filled with 
records. Otherwise i won't be able to assign them to Tester model.
As i said, in my python code or from mysql terminal all is visible. But 
in admin the choosen records are not marked as choosen.

thank you
pavel


raurukay wrote:
> you saved it in Admin or in your own form? If in form, problem could be your
> "def save()" function.
> did check table(s) of Book model? is it empty?
>
> Radovan
>
> [EMAIL PROTECTED] wrote:
>   
>> sorry, i forgot to mention that i am using debian stable version 
>> 0.95.1-1etch2
>>
>> ---------------------------------------------------------------------
>>
>> hi all
>>
>> i have a model with two ManyToManyFields. The problem is, that when i
>> choose some values,save it, and later come to the same record, the
>> values for this columns are not visible as marked. From mysql terminal
>> everything is ok. So it is little bit confusing.
>>
>> class Tester(models.Model):
>>     title=models.CharField('title', maxlength=255)
>>     test_winner=models.ManyToManyField(Book,
>> related_name="band_tester_winner")
>>     test_losser=models.ManyToManyField(Book,
>> related_name="book_tester_looser")
>>
>>     def __str__(self):
>>         return self.title
>>
>>     class Admin:
>>         list_display = ('id', 'title', )
>>         list_display_links = ('title', )
>>
>> actualy i do not know where to look for debugging
>> thank you
>> pavel
>>
>>
>>
>>
>>     
>>     
>
>   


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to