Re: manyTomany visibility in admin
Pavel, so if in tables there is everything ok (all ids match etc), then maybe problem is in browser itself. Or maybe try upgrade to django1.0. Sometimes when i'm looking at e.g. userprofile in Admin interface and i made some changes in templates and then when I only reload Admin view, M2M fields are not highlighted. But when reopen the userprofile it's ok, highlighted. Or when I was reading book about Django and doing examples as were in the book, using browser Mozilla i was unable to see colored parts of html (frames, etc), but in IE6 it was ok. Radovan [EMAIL PROTECTED] wrote: > > > 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 >>> >>> >>> >>> >>> >>> >> >> > > > > > > -- View this message in context: http://www.nabble.com/manyTomany-visibility-in-admin-tp19669374p19737020.html Sent from the django-users mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: manyTomany visibility in admin
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 -~--~~~~--~~--~--~---
Re: manyTomany visibility in admin
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 > > > > > > > > -- View this message in context: http://www.nabble.com/manyTomany-visibility-in-admin-tp19669374p19682592.html Sent from the django-users mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
manyTomany visibility in admin
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 -~--~~~~--~~--~--~---
manyTomany visibility in admin
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 -~--~~~~--~~--~--~---