“Lista wyświetlania” Kod odpowiedzi

Lista wyświetlania

A named list of OpenGL commands. Display lists are always stored on the server, so display lists can be used to reduce the network traffic in client/server environments. The contents of a display list may be preprocessed, and might therefore execute more efficiently than the same set of OpenGL commands executed in immediate mode. Such preprocessing is especially important for computing intensive commands such as glTexImage.
Faithful Flatworm

LIST_DISPLAY

class MyModelAdmin(admin.ModelAdmin):
    list_display = ('get_sub_title',)

    def get_sub_title(self, obj):
        if obj.sub_title:
            return obj.sub_title
        else:
            return 'Not Available'

    get_sub_title.short_description = 'Subtitle'
Disgusted Deer

Odpowiedzi podobne do “Lista wyświetlania”

Pytania podobne do “Lista wyświetlania”

Więcej pokrewnych odpowiedzi na “Lista wyświetlania” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu