Combine all lookup tables into a single unified system.
Project description
Efficient storage and management of lookup tables used throughout an app.
Note: This package is a work in progress (that’s why it’s not yet at version 1.0). I am active seeking contributions to help with making it more usable, see “Contributing” below.
Installation
Install the package:
$ pip install django-lookup-tables
Add it to your installed apps:
INSTALLED_APPS = (
...
'lookup_tables',
...
)
Usage
In the admin you will see an entry for ‘Lookup Tables’. Here you can add tables.
Each table has an arbitrary list of items. You can order them by setting the “Sort Order” field to any positive integer.
Using with Admin-Sortable2
If you have django-admin-sortable2 installed, you can take advantage of it’s UI enhancements by configuring django-lookup-tables to use it. In your settings.py:
INSTALLED_APPS = (
...
'adminsortable2',
'lookup_tables',
...
)
LOOKUP_TABLES = {
'USE_ADMIN_SORTABLE2': True,
}
## Contributing
I am actively seeking contributions to this package. Things that need to be completed for it to be usable generally:
Simple way to reference lookup values
Simple way to reference lookup tables
REST API (using Django Rest Framework) for looking up all the value options for a foreign key
If you have suggestions for other features I am open to hearing them. Use the “Issues” section of the repository to start a conversation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-lookup-tables-0.10.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de047294208c67976ab85cc8c0c7dd97f78e040f2d01d27244e026ee74c6bcf0 |
|
MD5 | 9ba54f07a6e6d2e87c3f3ea2547d5e9d |
|
BLAKE2b-256 | ea8fa85afdbba2daf7829021b961717cb2e5a5284fca660a9fa531d48ffe8de2 |
Hashes for django_lookup_tables-0.10.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dadca766c7eb2f40b2045585c1bab626c01b805b4ee6ee47d992d7357d0bdd8 |
|
MD5 | 41a36c6092bd3eca54354a6363ec4eb6 |
|
BLAKE2b-256 | 08e0569c99ff2bb8eb9c21364953e618587253eb432294f9ba55d4ec42254641 |