<commit_before>from etcetera.equipment.models import EquipmentType, Make, Equipment
from django.contrib import admin

# This file determines what's shown in the admin interface
class EquipmentAdmin(admin.ModelAdmin):
	fieldsets = (
		   ('Basic information', {
			  'fields': ('equipment_type', 'make', 'model', 'barcode', 'status', 'building', 'serial', 'last_inventoried', 'value',),
		   }),
		    ('Extra information', {
			  'classes': ('collapse',),
			  'fields': ('smsu_id', 'video_unit', 'property_control', 'lamp_type', 'on_weekly_checklist',),
		   }),
		   ('Purchase information', {
			  'classes': ('collapse',),
			  'fields': ('received_from', 'received_date', 'dof', 'purchase_order', 'budget',),
		   }),
			('Notes', {
				'fields': ('comments',),
			})
	    )
	list_display = ('equipment_type','barcode','make','model','status','building','room',)
	list_filter = ('status',)
	search_fields = ('equipment_type__name', 'make__name', 'model', 'barcode', 'serial', 'smsu_id', 'video_unit', 'lamp_type', 'received_from', 'dof', 'purchase_order', 'budget',)
<commit_msg>Fixed an admin issue that didn't show room number in the equipment detail page.'<commit_after>from etcetera.equipment.models import EquipmentType, Make, Equipment
from django.contrib import admin

# This file determines what's shown in the admin interface
class EquipmentAdmin(admin.ModelAdmin):
	fieldsets = (
		   ('Basic information', {
			  'fields': ('equipment_type', 'make', 'model', 'barcode', 'status', 'building', 'serial', 'room', 'last_inventoried', 'value',),
		   }),
		    ('Extra information', {
			  'classes': ('collapse',),
			  'fields': ('smsu_id', 'video_unit', 'property_control', 'lamp_type', 'on_weekly_checklist',),
		   }),
		   ('Purchase information', {
			  'classes': ('collapse',),
			  'fields': ('received_from', 'received_date', 'dof', 'purchase_order', 'budget',),
		   }),
			('Notes', {
				'fields': ('comments',),
			})
	    )
	list_display = ('equipment_type','barcode','make','model','status','building','room',)
	list_filter = ('status',)
	search_fields = ('equipment_type__name', 'make__name', 'model', 'barcode', 'serial', 'smsu_id', 'video_unit', 'lamp_type', 'received_from', 'dof', 'purchase_order', 'budget',)

{'fraction_non_alphanumeric': 0.19794917521176994, 'fraction_numerical': 0.0, 'mean_word_length': 5.338983050847458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7204070', 'n_tokens_mistral': 796, 'n_tokens_neox': 706, 'n_words': 162}