diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-18 10:12:16 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-18 10:12:16 -0600 |
commit | 709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7 (patch) | |
tree | cc4aa6854147c0dc74bbd3bea9b8b9cfc083b62f /src/contrib | |
parent | 3b880c0ae7963d783fb87a3389f98070e448495a (diff) | |
download | tosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.tar.gz tosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.zip |
make model metadata available in AppConfig
Diffstat (limited to 'src/contrib')
-rw-r--r-- | src/contrib/admin/mod.rs | 2 | ||||
-rw-r--r-- | src/contrib/admin/models.rs | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/contrib/admin/mod.rs b/src/contrib/admin/mod.rs index f92e709..8572f8d 100644 --- a/src/contrib/admin/mod.rs +++ b/src/contrib/admin/mod.rs @@ -1,9 +1,11 @@ use crate::apps::AppConfig; mod migrations; +mod models; pub mod site; pub const APP: AppConfig = AppConfig { name: module_path!(), + models: models::ALL, migrations: migrations::migrations, }; diff --git a/src/contrib/admin/models.rs b/src/contrib/admin/models.rs new file mode 100644 index 0000000..7fde44a --- /dev/null +++ b/src/contrib/admin/models.rs @@ -0,0 +1,6 @@ +#[allow(unused_imports)] +use crate::db::models::{Model, Id, ModelMeta}; + +pub const ALL: &[ModelMeta] = &[ + +]; |