Sites Module¶
The documentation of
admin_kit.sites
module. The module has only classAdminKitSite
which 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_class
to akey
.Note
If
unique
attribute ofajax_class
isTrue
, remember to prepend its slugname to thekey
.
-