boardinghouse.admin module

class boardinghouse.admin.SchemaAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

The ModelAdmin for the schema class should protect the schema field, but only once the object has been saved.

get_readonly_fields(request, obj=None)[source]

Prevents schema from being editable once created.

boardinghouse.admin.get_inline_instances(self, request, obj=None)[source]

Prevent the display of non-shared inline objects associated with private models if no schema is currently selected.

If we don’t patch this, then a DatabaseError will occur because the tables could not be found.

boardinghouse.admin.schemata(obj)[source]

Useful function for adding schemata representation to admin list view.