class IndustrialSpaceRentAdmin(BaseOfferAdmin): inlines = (IndustrialSpaceInline, IndustrialSpaceRentImagesInline) property_fields = default_property_info_fields[: 3] + default_property_info_fields[ 4:] additional_property_info_fieldsets = ('building_year', 'building_stage', 'occupation_degree', 'levels_nr', 'resistance_structure', 'platform_surface') fieldsets = (BaseOfferAdmin.basic_info_fieldsets, BaseOfferAdmin.location_fieldsets, ('Tip spaţiu', { 'fields': ('building_type', ) }), get_property_info_fieldsets(property_fields), get_additional_property_info_fieldsets( fields=additional_property_info_fieldsets), ('Utilităţi', { 'fields': (('has_water', 'has_gas', 'has_current'), ) }), ('Acces', { 'fields': (('has_railway', 'has_tir_access', 'has_roads'), ) }), ('Dotări', { 'fields': (('has_ramp', 'has_slide_bridge', 'has_elevator', 'has_crane'), ) }), exclusivity_fieldsets, BaseOfferAdmin.time_fieldsets, BaseOfferAdmin.is_published_fieldsets)
class OfficeRentAdmin(BaseOfferAdmin): inlines = (SpaceInline, OfficeRentImagesInline) fieldsets = (BaseOfferAdmin.basic_info_fieldsets, BaseOfferAdmin.location_fieldsets, ('Tip spaţiu', { 'fields': ('building_type', ) }), get_property_info_fieldsets(), exclusivity_fieldsets, BaseOfferAdmin.time_fieldsets, BaseOfferAdmin.is_published_fieldsets)
class OfficeSaleAdmin(BaseOfferAdmin): inlines = (OfficeSaleImagesInline,) readonly_fields = ['has_ground_floor'] radio_fields = {'purpose_recommendation': admin.HORIZONTAL} fieldsets = ( BaseOfferAdmin.basic_info_fieldsets, BaseOfferAdmin.location_fieldsets, space_type_fieldsets, space_price_fieldsets, get_property_info_fieldsets(), other_fieldsets, exclusivity_fieldsets, BaseOfferAdmin.time_fieldsets, BaseOfferAdmin.is_published_fieldsets )
class SpecialPropertyRentAdmin(BaseOfferAdmin): inlines = (SpaceInline, SpecialPropertyRentImagesInline) commercial_property_fields = default_property_info_fields[: 3] + default_property_info_fields[ 4:] additional_property_info_fieldsets = default_additional_property_info_fields + space_utilities_fields readonly_fields = ['has_ground_floor'] fieldsets = (BaseOfferAdmin.basic_info_fieldsets, BaseOfferAdmin.location_fieldsets, ('Tip spaţiu', { 'fields': ('building_type', ) }), get_property_info_fieldsets(commercial_property_fields), get_additional_property_info_fieldsets( collapsed=True, fields=additional_property_info_fieldsets), exclusivity_fieldsets, BaseOfferAdmin.time_fieldsets, BaseOfferAdmin.is_published_fieldsets)