Thanks so much. Sorted competely!
On Mon, Jan 11, 2016 at 5:44 PM, Erik Cederstrand wrote:
>
> > Den 11. jan. 2016 kl. 23.21 skrev Jonty Needham >:
> >
> > I have a ModelAdmin class where I am using callables to define accessors
> to a foreign key's field.
> >
> > I.e.
> >
> > class MyAdmin(adm
> Den 11. jan. 2016 kl. 23.21 skrev Jonty Needham :
>
> I have a ModelAdmin class where I am using callables to define accessors to a
> foreign key's field.
>
> I.e.
>
> class MyAdmin(admin.ModelAdmin):
>
> def field_name(self, obj):
> return obj.fk.field_name
>
> readonly_fi
I have a ModelAdmin class where I am using callables to define accessors to
a foreign key's field.
I.e.
class MyAdmin(admin.ModelAdmin):
def field_name(self, obj):
return obj.fk.field_name
readonly_fields=(field_name, other_field)
Ultimately I need to translate the labels, but
3 matches
Mail list logo