2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Extract field information from the server

This commit is contained in:
Oliver
2021-07-15 23:58:09 +10:00
parent 83e29777c2
commit 7291dc9272
2 changed files with 77 additions and 2 deletions

View File

@ -126,8 +126,7 @@ class InvenTreeModel {
}
// Return the API detail endpoint for this Model object
String get url => "${URL}/${pk}/";
String get url => "${URL}/${pk}/".replaceAll("//", "/");
// Search this Model type in the database
Future<List<InvenTreeModel>> search(BuildContext context, String searchTerm, {Map<String, String> filters = const {}}) async {