Metadata-Version: 2.5
Name: university-promotions
Version: 0.1.0
Summary: University Promotions: Sponsored posts, boosts and ads with review, budgets and privacy-preserving delivery stats.
Author-email: Ifeanyi Stanley <nnamaniifeanyi10@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: university-core<0.2,>=0.1.1
Provides-Extra: test
Requires-Dist: drf-spectacular>=0.27; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest-django>=4.8; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# university-promotions

Sponsored posts, boosts and ads with review, budgets and privacy-preserving delivery stats.

An optional **level-two** module of the University platform.

## Installation

```bash
pip install university-promotions
```

```python
INSTALLED_APPS = [
    # ...
    *CORE_APPS,
    "university.promotions",
]
```

Run `python manage.py migrate`. The module's API is mounted automatically under
`/api/v1/promotions/`.

## Configuration

```python
UNIVERSITY = {
    "PROMOTIONS": {
        "ENABLED": True,
    },
}
```

## Permissions

| Code | Scope | Description |
| --- | --- | --- |
| `promotions.items.create` | platform | Create items |

## Events

| Event | Payload |
| --- | --- |
| `promotions.item.created` | `item_id`, `owner_id` |
