Sites Module¶
The documentation of
admin_kit.sitesmodule. The module has only classAdminKitSitewhich is the root site of the app.This site object is aliased to
admin_kit.site. So it can accessed through the same
Site Methods¶
-
register(key, ajax_class)¶ - key :: str
This is the key that will be used in models for binding
- ajax_class :: class
The ajax class that inherits
admin_kit.ajax.Ajax
This method is used to bind an
ajax_classto akey.Note
If
uniqueattribute ofajax_classisTrue, remember to prepend its slugname to thekey.
-