On Tue, Feb 17, 2009 at 11:47 AM, Alex Gaynor <alex.gay...@gmail.com> wrote:
> I think value is a list in that case, of the primary keys, but the best way > to find out is through expirementation, have that method return nothing but > a string representation of value and look at that page, or use some other > form of logging, once you know what it is you can make it do just what you > want. Yeap, value is actually a list of large integers. But in none variable come an object that allows me access the related objects' """ class ManyToManyRawIdWidget(*ForeignKeyRawIdWidget*): def render(self, name, value, attrs=None): attrs['class'] = 'vManyToManyRawIdAdminField' if value: *value = ','.join([str(v) for v in value])* else: value = '' output = [super(ManyToManyRawIdWidget, self).render(name, value, attrs)] return mark_safe(u''.join(output)) def url_parameters(self): return self.base_url_parameters() def label_for_value(self, value): return ' <strong>%s</strong>' % self.rel.__dict__ """ -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wordpress.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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---