Django-quotes

Latest version: v0.5.1

Safety actively analyzes 623439 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.5.1

[Compare the full difference](https://github.com/andrlik/django-quotes/compare/v0.5.0...v0.5.1)

- Updates to `django-markov` to 0.3.0
- Converts add_new_quote_to_model to use the underlying functions from django-markov.
- Adds the ability to add an iterable of Quote instances to the model at once. The call accepts either an iterable or QuerySet of Quote instances, or a single instance to maintain backwards compatibility.

0.5.0

[Compare the full difference](https://github.com/andrlik/django-quotes/compare/v0.4.2...v0.5.0)

- Adds a method `django_quotes.tasks.update_models_on_quote_save` that can be used for distributed task queues such as django-q2 or celery for updating markov models as a background task.
- Updates behavior of SourceGroup when generating its text model based its sources. It now makes use of `django-markov`'s `combine_models`, which is over 750% faster!
- Adds convenience method `add_quote_to_model` to `Source` for quick adding of quotes. We still don't trigger this automatically due to performance concerns. You should either use this with a distributed task queue or run the management command as a cronjob.

0.4.2

[Compare the full difference](https://github.com/andrlik/django-quotes/compare/v0.4.1...v0.4.2)

- Rendered fields have been removed: `description_rendered` and `quote_rendered`. For backwards compatibility, their values can be accessed via properties of the same names.

0.4.1

[Compare the full difference](https://github.com/andrlik/django-quotes/compare/v0.4.0...v0.4.1)

- Some improvements to migrations to handle some upgrade use cases.
- Some type annotation improvements.

0.4.0

[Compare the full difference](https://github.com/andrlik/django-quotes/compare/v0.3.2...v0.4.0)

- Drops support for Python 3.9 and 3.10.
- Moves markov model management to [django-markov](https://github.com/django-markov).
- This replaces the current `SourceMarkovModel` and `GroupMakovModel` with `MarkovTextModel`.
- This replaces the `markov_sentence_generated` with `django-markov`'s `sentence_generated` signal.
- Migrations will transfer existing models to the new database tables and then remove the old one.
- While no data loss is anticipated, if is **highly** recommended that you take a backup of your database prior to upgrading.
- If you'd still like to implement the migrations cautiously, you can run `python manage.py migrate django_quotes 0011` first to confirm that the data migrated safely. Then you can run `python manage.py migrate django_quotes 0012` to complete the upgrade and remove the old tables.
- As `django-markov` makes heavy use of the newest async features, Django>=5.0 is now required.
- Improved python module reference documentation.
- Add versioning to documentation.

0.3.2

[Compare the full difference](https://github.com/andrlik/django-quotes/compare/v0.3.1...v0.3.2)

- Security update: removes `py` from dependencies as no longer needed and has a vulnerability.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.