Hi, you should be using *list_display*! here's a sample that i have used in
one of my project you too can compare *fields *and *list_display* try
adding/removing column names from these elements
class ChoiceAdmin(admin.ModelAdmin):
fields = ['choice_text', 'votes', 'question',]
list_disp
yes used this fieldsets,
here documentation
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets
Cheers
On Mon, Jul 10, 2017 at 2:08 PM, Informatico Neurodesarrollo <
infneurodcr@infomed.sld.cu> wrote:
> Hello, I am a new programmer on Django.
>
Hello, I am a new programmer on Django.
I want in this class show, in the admin site of Django, the field "id",
I don't want create other field, if this could be possible.
class Tarjeton(models.Model):
farmacia = models.ForeignKey(Farmacia, null=True,
on_delete=models.SET_NULL)
MOTIVO =
3 matches
Mail list logo