https://github.com/jacobsvante/bootstrap-modeltranslation
Adds translation tabs to django-admin-bootstrapped. For use with django-modeltranslation. NOTE: Not actively maintained. If you feel like taking over the project just give me a shout.
https://github.com/jacobsvante/bootstrap-modeltranslation
Last synced: about 1 year ago
JSON representation
Adds translation tabs to django-admin-bootstrapped. For use with django-modeltranslation. NOTE: Not actively maintained. If you feel like taking over the project just give me a shout.
- Host: GitHub
- URL: https://github.com/jacobsvante/bootstrap-modeltranslation
- Owner: jacobsvante
- License: bsd-3-clause
- Created: 2013-05-21T17:21:32.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T20:47:10.000Z (over 8 years ago)
- Last Synced: 2024-10-07T21:41:13.164Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 324 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# bootstrap-modeltranslation
[](https://pypi.python.org/pypi/bootstrap-modeltranslation)
**Author:** Jacob Magnusson. [Follow me on Twitter][twitter]
## Overview
bootstrap-modeltranslation is a mini-package for adding tabbable [django-modeltranslation] translation fields to [django-admin-bootstrapped].

## Tested with
* Python 2.7.5
* Django 1.6
* [django-admin-bootstrapped] 0.4.3
* [django-modeltranslation] 0.7
## Installation
Install using `pip`:
pip install bootstrap-modeltranslation
Add package to `INSTALLED_APPS` (order doesn't matter):
```python
INSTALLED_APPS = (
'django_admin_bootstrapped',
'modeltranslation',
...
'bootstrap_modeltranslation',
)
```
NOTE: `bootstrap_modeltranslation` must come before `modeltranslation` for tabbed translation fields to work
Copy the static files to your project:
python manage.py collectstatic
Import admin classes for inheritance and use just like you would the default ones ([read the modeltranslation docs for more info][django-modeltranslation-docs-admin]).
```python
from bootstrap_modeltranslation.admin import (
TranslationAdmin,
TranslationTabularInline,
TranslationStackedInline,
TranslationGenericTabularInline,
TranslationGenericStackedInline)
class SomeModelAdmin(TranslationAdmin):
pass
class SomeModelInlineAdmin(TranslationStackedInline):
pass
```
## Documentation
This document
[twitter]: https://twitter.com/jacobsvante_
[docs]: https://github.com/jmagnusson/bootstrap-modeltranslation
[django-modeltranslation]: https://github.com/deschler/django-modeltranslation
[django-modeltranslation-docs-admin]: https://django-modeltranslation.readthedocs.org/en/latest/admin.html
[django-admin-bootstrapped]: https://github.com/riccardo-forina/django-admin-bootstrapped