Metadata-Version: 2.4
Name: djangocms-common-catalog
Version: 2.1.3
Summary: DjangoCMS Common Catalog
Home-page: https://gitlab.nic.cz/djangocms-apps/djangocms-common-catalog.git
Author: Zdeněk Böhm, CZ.NIC
Author-email: zdenek.bohm@nic.cz
License: GPLv3+
Platform: posix
Classifier: Typing :: Typed
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Framework :: Django CMS :: 4.1
Classifier: Framework :: Django CMS :: 5.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: django-cms<6,>=4.1
Requires-Dist: djangocms-text~=0.9
Requires-Dist: django-filer~=3.3
Requires-Dist: django-parler>=1.9.2
Requires-Dist: djangocms-attributes-field>=3.0
Requires-Dist: django-entangled~=0.7
Provides-Extra: quality
Requires-Dist: flake8; extra == "quality"
Requires-Dist: isort; extra == "quality"
Requires-Dist: mypy; extra == "quality"
Requires-Dist: polint; extra == "quality"
Requires-Dist: pydocstyle; extra == "quality"

# Common Catalog

Common catalog for various uses.

The program is built on the  [Django CMS](https://www.django-cms.org/) framework.

The program itself does not contain any cascading styles or javascript code.

## Install

Install the package from pypi.org.

```
pip install djangocms-common-catalog
```

Add into `INSTALLED_APPS` in your site `settings.py`:

```python
INSTALLED_APPS = [
    ...
    'common_catalog',
]
```

### Extra settings

 - ``COMMON_CATALOG_TEMPLATE_LIST`` - custom template for the list of items.
 - ``COMMON_CATALOG_TEMPLATE_DETAIL`` - custom template the Item detail.
 - ``COMMON_CATALOG_LOCATIONS`` - Custom filter location names.
 - ``COMMON_CATALOG_FILTER_QUERY_NAME`` - URL query name. Default is `cocaf`.
 - ``COMMON_CATALOG_DETAIL_PARENT_TEMPLATE`` - Name of parent template on Item detail page.


## Temporary fix

There was a problem with editing items when switching to CMS 4. An exception AttributeError occurs: type object 'Meta' has no attribute 'model'.
Until the problem is resolved, you can apply a patch on github.com.

``django-parler @ git+https://github.com/zbohm/django-parler.git@d448685ba3a2614aeb8f4df9e422a924a3c34ec2``

## License

GPLv3+
