from django.contrib import admin
from .models import Apartments, ApartmentType


class ApartmentsAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'city', 'price', 'apartment_type', 'is_published')
    list_display_links = ('id', 'title', 'city', 'price')
    list_editable = ('is_published', 'apartment_type')
    list_per_page = 30
    search_fields = ('title', 'price', 'description')


admin.site.register(Apartments, ApartmentsAdmin)
admin.site.register(ApartmentType)

22eb963f545aa71d9b0b03c3a95db5ec1c5f78d3
<mask token>

<mask token>


class ApartmentsAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class ApartmentsAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'city', 'price', 'apartment_type',
        'is_published')
    list_display_links = 'id', 'title', 'city', 'price'
    list_editable = 'is_published', 'apartment_type'
    list_per_page = 30
    search_fields = 'title', 'price', 'description'


<mask token>

from django.contrib import admin
from .models import Apartments, ApartmentType


class ApartmentsAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'city', 'price', 'apartment_type',
        'is_published')
    list_display_links = 'id', 'title', 'city', 'price'
    list_editable = 'is_published', 'apartment_type'
    list_per_page = 30
    search_fields = 'title', 'price', 'description'


admin.site.register(Apartments, ApartmentsAdmin)
admin.site.register(ApartmentType)

from django.contrib import admin
from .models import Apartments, ApartmentType


class ApartmentsAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'city', 'price', 'apartment_type', 'is_published')
    list_display_links = ('id', 'title', 'city', 'price')
    list_editable = ('is_published', 'apartment_type')
    list_per_page = 30
    search_fields = ('title', 'price', 'description')


admin.site.register(Apartments, ApartmentsAdmin)
admin.site.register(ApartmentType)
