Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-attachments for
openSUSE:Factory checked in at 2022-04-20 16:56:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-attachments (Old)
and /work/SRC/openSUSE:Factory/.python-django-attachments.new.1941 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-attachments"
Wed Apr 20 16:56:50 2022 rev:4 rq:970872 version:1.9.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-attachments/python-django-attachments.changes
2022-01-07 12:47:54.219908887 +0100
+++
/work/SRC/openSUSE:Factory/.python-django-attachments.new.1941/python-django-attachments.changes
2022-04-20 16:57:22.618625680 +0200
@@ -1,0 +2,7 @@
+Tue Apr 19 12:44:03 UTC 2022 - Mark??ta Machov?? <[email protected]>
+
+- Update to 1.9.1
+ * Configure PK explicitly to AutoField for Django 3.2+
+- do not use mock
+
+-------------------------------------------------------------------
@@ -15 +22 @@
-- Update to v0.8
+- Update to v1.8
Old:
----
django-attachments-1.8.tar.gz
New:
----
django-attachments-1.9.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-attachments.spec ++++++
--- /var/tmp/diff_new_pack.54ZiiS/_old 2022-04-20 16:57:23.050626083 +0200
+++ /var/tmp/diff_new_pack.54ZiiS/_new 2022-04-20 16:57:23.054626087 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python36 1
Name: python-django-attachments
-Version: 1.8
+Version: 1.9.1
Release: 0
Summary: Attach files to any Django model
License: MIT
@@ -34,7 +34,6 @@
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module django >= 1.11}
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module six}
# /SECTION
@@ -46,6 +45,7 @@
%prep
%setup -q -n django-attachments-%{version}
sed -i '/mock/d;/-cov/d;/flakes/d' setup.cfg
+sed -i 's/import mock/from unittest import mock/'
attachments/tests/test_views.py
%build
%python_build
++++++ django-attachments-1.8.tar.gz -> django-attachments-1.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/CHANGELOG.rst
new/django-attachments-1.9.1/CHANGELOG.rst
--- old/django-attachments-1.8/CHANGELOG.rst 2020-09-03 12:04:28.000000000
+0200
+++ new/django-attachments-1.9.1/CHANGELOG.rst 2021-04-30 15:52:08.000000000
+0200
@@ -1,6 +1,22 @@
Changelog:
==========
+v1.9.1 (2021-04-30)
+-------------------
+
+- Rebuild the previous version but don't ship a left-over migration file
+
+
+v1.9 (2021-04-29) -- removed from PyPI
+--------------------------------------
+
+- Configure PK explicitly to AutoField for Django 3.2+, see
+
https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
+- Start testing with Django 3.2
+- Fix typo in README (Jesaja Everling)
+- Enable syntax highlighting in README (Basil S)
+
+
v1.8 (2020-09-03)
-----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/PKG-INFO
new/django-attachments-1.9.1/PKG-INFO
--- old/django-attachments-1.8/PKG-INFO 2020-09-03 12:04:58.000000000 +0200
+++ new/django-attachments-1.9.1/PKG-INFO 2021-04-30 15:53:31.418493300
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: django-attachments
-Version: 1.8
+Version: 1.9.1
Summary: django-attachments is generic Django application to attach Files
(Attachments) to any model.
Home-page: https://github.com/bartTC/django-attachments
Author: Martin Mahner
@@ -30,20 +30,26 @@
=============
1. Put ``attachments`` to your ``INSTALLED_APPS`` in your
``settings.py``
- within your django project::
+ within your django project:
+
+ .. code-block:: python
- INSTALLED_APPS = (
- ...
- 'attachments',
- )
+ INSTALLED_APPS = (
+ ...
+ 'attachments',
+ )
- 2. Add the attachments urlpattern to your ``urls.py``::
+ 2. Add the attachments urlpattern to your ``urls.py``:
- url(r'^attachments/', include('attachments.urls',
namespace='attachments')),
+ .. code-block:: python
- 3. Migrate your database::
+ url(r'^attachments/', include('attachments.urls',
namespace='attachments')),
- ./manage.py migrate
+ 3. Migrate your database:
+
+ .. code-block:: shell
+
+ ./manage.py migrate
4. Grant the user some permissions:
@@ -70,7 +76,9 @@
django-attachments stores the files in your site_media directory and
does not modify
them. For example, if an user uploads a .html file your webserver will
probably display
it in HTML. It's a good idea to serve such files as plain text. In a
Apache2
- configuration this would look like::
+ configuration this would look like:
+
+ .. code-block:: apache
<Location /site_media/attachments>
AddType text/plain .html .htm .shtml .php .php5 .php4 .pl .cgi
@@ -80,9 +88,11 @@
House-keeping
=============
- django-attachments provides the ``delete_stale_sttachments``
management command.
+ django-attachments provides the ``delete_stale_attachments``
management command.
It will remove all attachments for which the related objects don't
exist anymore!
- Sys-admins could then::
+ Sys-admins could then:
+
+ .. code-block:: shell
./manage.py delete_stale_attachments
@@ -92,18 +102,24 @@
Tests
=====
- Run the testsuite in your local environment using ``pipenv``::
+ Run the testsuite in your local environment using ``pipenv``:
+
+ .. code-block:: shell
$ cd django-attachments/
$ pipenv install --dev
$ pipenv run pytest attachments/
- Or use tox to test against various Django and Python versions::
+ Or use tox to test against various Django and Python versions:
+
+ .. code-block:: shell
$ tox -r
You can also invoke the test suite or other 'manage.py' commands by
calling
- the ``django-admin`` tool with the test app settings::
+ the ``django-admin`` tool with the test app settings:
+
+ .. code-block:: shell
$ cd django-attachments/
$ pipenv install --dev
@@ -119,7 +135,9 @@
django-attachments provides a inline object to add a list of
attachments to
any kind of model in your admin app.
- Simply add ``AttachmentInlines`` to the admin options of your model.
Example::
+ Simply add ``AttachmentInlines`` to the admin options of your model.
Example:
+
+ .. code-block:: python
from django.contrib import admin
from attachments.admin import AttachmentInlines
@@ -132,7 +150,9 @@
In your frontend templates:
---------------------------
- First of all, load the attachments_tags in every template you want to
use it::
+ First of all, load the attachments_tags in every template you want to
use it:
+
+ .. code-block:: html+django
{% load attachments_tags %}
@@ -144,26 +164,34 @@
list is stored in the template context (this is required in Django
1.8). If
you do not define a variable name, the result is printed instead.
- {% get_attachments_for entry as "attachments_list" %}
+ .. code-block:: html+django
+
+ {% get_attachments_for entry as "attachments_list" %}
2. ``attachments_count [object]``: Counts the attachments for the given
- model instance and returns an int::
+ model instance and returns an int:
- {% attachments_count entry %}
+ .. code-block:: html+django
+
+ {% attachments_count entry %}
3. ``attachment_form``: Renders a upload form to add attachments for
the given
- model instance. Example::
+ model instance. Example:
+
+ .. code-block:: html+django
- {% attachment_form [object] %}
+ {% attachment_form [object] %}
It returns an empty string if the current user is not logged in.
4. ``attachment_delete_link``: Renders a link to the delete view for
the given
- *attachment*. Example::
+ *attachment*. Example:
- {% for att in attachments_list %}
- {{ att }} {% attachment_delete_link att %}
- {% endfor %}
+ .. code-block:: html+django
+
+ {% for att in attachments_list %}
+ {{ att }} {% attachment_delete_link att %}
+ {% endfor %}
This tag automatically checks for permission. It returns only a
html link if the
give n attachment's creator is the current logged in user or the
user has the
@@ -172,7 +200,7 @@
Quick Example:
==============
- ::
+ .. code-block:: html+django
{% load attachments_tags %}
{% get_attachments_for entry as my_entry_attachments %}
@@ -204,6 +232,22 @@
Changelog:
==========
+ v1.9.1 (2021-04-30)
+ -------------------
+
+ - Rebuild the previous version but don't ship a left-over migration
file
+
+
+ v1.9 (2021-04-29) -- removed from PyPI
+ --------------------------------------
+
+ - Configure PK explicitly to AutoField for Django 3.2+, see
+
https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
+ - Start testing with Django 3.2
+ - Fix typo in README (Jesaja Everling)
+ - Enable syntax highlighting in README (Basil S)
+
+
v1.8 (2020-09-03)
-----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/Pipfile.lock
new/django-attachments-1.9.1/Pipfile.lock
--- old/django-attachments-1.8/Pipfile.lock 2020-08-17 22:22:58.000000000
+0200
+++ new/django-attachments-1.9.1/Pipfile.lock 2021-04-27 22:12:56.000000000
+0200
@@ -16,18 +16,18 @@
"default": {
"asgiref": {
"hashes": [
-
"sha256:8036f90603c54e93521e5777b2b9a39ba1bad05773fcf2d208f0299d1df58ce5",
-
"sha256:9ca8b952a0a9afa61d30aa6d3d9b570bb3fd6bafcf7ec9e6bed43b936133db1c"
+
"sha256:92906c611ce6c967347bbfea733f13d6313901d54dcca88195eaeb52b2a8e8ee",
+
"sha256:d1216dfbdfb63826470995d31caed36225dcaf34f182e0fa257a4dd9e86f1b78"
],
- "version": "==3.2.7"
+ "version": "==3.3.4"
},
"django": {
"hashes": [
-
"sha256:5052b34b34b3425233c682e0e11d658fd6efd587d11335a0203d827224ada8f2",
-
"sha256:e1630333248c9b3d4e38f02093a26f1e07b271ca896d73097457996e0fae12e8"
+
"sha256:c348b3ddc452bf4b62361f0752f71a339140c777ebea3cdaaaa8fdb7f417a862",
+
"sha256:f8393103e15ec2d2d313ccbb95a3f1da092f9f58d74ac1c61ca2ac0436ae1eac"
],
"index": "pypi",
- "version": "==3.0.7"
+ "version": "==3.1.8"
},
"django-attachments": {
"editable": true,
@@ -38,17 +38,17 @@
},
"pytz": {
"hashes": [
-
"sha256:a494d53b6d39c3c6e44c3bec237336e14305e4f29bbf800b599253057fbb79ed",
-
"sha256:c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048"
+
"sha256:83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da",
+
"sha256:eb10ce3e7736052ed3623d49975ce333bcd712c7bb19a58b9e2089d4057d0798"
],
- "version": "==2020.1"
+ "version": "==2021.1"
},
"sqlparse": {
"hashes": [
-
"sha256:022fb9c87b524d1f7862b3037e541f68597a730a8843245c349fc93e1643dc4e",
-
"sha256:e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548"
+
"sha256:017cde379adbd6a1f15a61873f43e8274179378e95ef3fede90b5aa64d304ed0",
+
"sha256:0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8"
],
- "version": "==0.3.1"
+ "version": "==0.4.1"
}
},
"develop": {
@@ -61,10 +61,10 @@
},
"attrs": {
"hashes": [
-
"sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c",
-
"sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72"
+
"sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6",
+
"sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700"
],
- "version": "==19.3.0"
+ "version": "==20.3.0"
},
"black": {
"hashes": [
@@ -76,10 +76,10 @@
},
"click": {
"hashes": [
-
"sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a",
-
"sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"
+
"sha256:681c9380a24b22fec089c8e5ffe40aa16a0da79f248a26fe2481bfa8170bfcc1",
+
"sha256:e4315a188403c0258bbc4a4e31863e48fc301c4e95b8007a8eeda0391158df13"
],
- "version": "==7.1.2"
+ "version": "==8.0.0a1"
},
"coverage": {
"hashes": [
@@ -126,69 +126,98 @@
},
"pathspec": {
"hashes": [
-
"sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0",
-
"sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"
+
"sha256:86379d6b86d75816baba717e64b1a3a3469deb93bb76d613c9ce79edc5cb68fd",
+
"sha256:aa0cb481c4041bf52ffa7b0d8fa6cd3e88a2ca4879c533c9153882ee2556790d"
],
- "version": "==0.8.0"
+ "version": "==0.8.1"
},
"regex": {
"hashes": [
-
"sha256:1386e75c9d1574f6aa2e4eb5355374c8e55f9aac97e224a8a5a6abded0f9c927",
-
"sha256:27ff7325b297fb6e5ebb70d10437592433601c423f5acf86e5bc1ee2919b9561",
-
"sha256:329ba35d711e3428db6b45a53b1b13a0a8ba07cbbcf10bbed291a7da45f106c3",
-
"sha256:3a9394197664e35566242686d84dfd264c07b20f93514e2e09d3c2b3ffdf78fe",
-
"sha256:51f17abbe973c7673a61863516bdc9c0ef467407a940f39501e786a07406699c",
-
"sha256:579ea215c81d18da550b62ff97ee187b99f1b135fd894a13451e00986a080cad",
-
"sha256:70c14743320a68c5dac7fc5a0f685be63bc2024b062fe2aaccc4acc3d01b14a1",
-
"sha256:7e61be8a2900897803c293247ef87366d5df86bf701083b6c43119c7c6c99108",
-
"sha256:8044d1c085d49673aadb3d7dc20ef5cb5b030c7a4fa253a593dda2eab3059929",
-
"sha256:89d76ce33d3266173f5be80bd4efcbd5196cafc34100fdab814f9b228dee0fa4",
-
"sha256:99568f00f7bf820c620f01721485cad230f3fb28f57d8fbf4a7967ec2e446994",
-
"sha256:a7c37f048ec3920783abab99f8f4036561a174f1314302ccfa4e9ad31cb00eb4",
-
"sha256:c2062c7d470751b648f1cacc3f54460aebfc261285f14bc6da49c6943bd48bdd",
-
"sha256:c9bce6e006fbe771a02bda468ec40ffccbf954803b470a0345ad39c603402577",
-
"sha256:ce367d21f33e23a84fb83a641b3834dd7dd8e9318ad8ff677fbfae5915a239f7",
-
"sha256:ce450ffbfec93821ab1fea94779a8440e10cf63819be6e176eb1973a6017aff5",
-
"sha256:ce5cc53aa9fbbf6712e92c7cf268274eaff30f6bd12a0754e8133d85a8fb0f5f",
-
"sha256:d466967ac8e45244b9dfe302bbe5e3337f8dc4dec8d7d10f5e950d83b140d33a",
-
"sha256:d881c2e657c51d89f02ae4c21d9adbef76b8325fe4d5cf0e9ad62f850f3a98fd",
-
"sha256:e565569fc28e3ba3e475ec344d87ed3cd8ba2d575335359749298a0899fe122e",
-
"sha256:ea55b80eb0d1c3f1d8d784264a6764f931e172480a2f1868f2536444c5f01e01"
+
"sha256:01afaf2ec48e196ba91b37451aa353cb7eda77efe518e481707e0515025f0cd5",
+
"sha256:11d773d75fa650cd36f68d7ca936e3c7afaae41b863b8c387a22aaa78d3c5c79",
+
"sha256:18c071c3eb09c30a264879f0d310d37fe5d3a3111662438889ae2eb6fc570c31",
+
"sha256:1e1c20e29358165242928c2de1482fb2cf4ea54a6a6dea2bd7a0e0d8ee321500",
+
"sha256:281d2fd05555079448537fe108d79eb031b403dac622621c78944c235f3fcf11",
+
"sha256:314d66636c494ed9c148a42731b3834496cc9a2c4251b1661e40936814542b14",
+
"sha256:32e65442138b7b76dd8173ffa2cf67356b7bc1768851dded39a7a13bf9223da3",
+
"sha256:339456e7d8c06dd36a22e451d58ef72cef293112b559010db3d054d5560ef439",
+
"sha256:3916d08be28a1149fb97f7728fca1f7c15d309a9f9682d89d79db75d5e52091c",
+
"sha256:3a9cd17e6e5c7eb328517969e0cb0c3d31fd329298dd0c04af99ebf42e904f82",
+
"sha256:47bf5bf60cf04d72bf6055ae5927a0bd9016096bf3d742fa50d9bf9f45aa0711",
+
"sha256:4c46e22a0933dd783467cf32b3516299fb98cfebd895817d685130cc50cd1093",
+
"sha256:4c557a7b470908b1712fe27fb1ef20772b78079808c87d20a90d051660b1d69a",
+
"sha256:52ba3d3f9b942c49d7e4bc105bb28551c44065f139a65062ab7912bef10c9afb",
+
"sha256:563085e55b0d4fb8f746f6a335893bda5c2cef43b2f0258fe1020ab1dd874df8",
+
"sha256:598585c9f0af8374c28edd609eb291b5726d7cbce16be6a8b95aa074d252ee17",
+
"sha256:619d71c59a78b84d7f18891fe914446d07edd48dc8328c8e149cbe0929b4e000",
+
"sha256:67bdb9702427ceddc6ef3dc382455e90f785af4c13d495f9626861763ee13f9d",
+
"sha256:6d1b01031dedf2503631d0903cb563743f397ccaf6607a5e3b19a3d76fc10480",
+
"sha256:741a9647fcf2e45f3a1cf0e24f5e17febf3efe8d4ba1281dcc3aa0459ef424dc",
+
"sha256:7c2a1af393fcc09e898beba5dd59196edaa3116191cc7257f9224beaed3e1aa0",
+
"sha256:7d9884d86dd4dd489e981d94a65cd30d6f07203d90e98f6f657f05170f6324c9",
+
"sha256:90f11ff637fe8798933fb29f5ae1148c978cccb0452005bf4c69e13db951e765",
+
"sha256:919859aa909429fb5aa9cf8807f6045592c85ef56fdd30a9a3747e513db2536e",
+
"sha256:96fcd1888ab4d03adfc9303a7b3c0bd78c5412b2bfbe76db5b56d9eae004907a",
+
"sha256:97f29f57d5b84e73fbaf99ab3e26134e6687348e95ef6b48cfd2c06807005a07",
+
"sha256:980d7be47c84979d9136328d882f67ec5e50008681d94ecc8afa8a65ed1f4a6f",
+
"sha256:a91aa8619b23b79bcbeb37abe286f2f408d2f2d6f29a17237afda55bb54e7aac",
+
"sha256:ade17eb5d643b7fead300a1641e9f45401c98eee23763e9ed66a43f92f20b4a7",
+
"sha256:b9c3db21af35e3b3c05764461b262d6f05bbca08a71a7849fd79d47ba7bc33ed",
+
"sha256:bd28bc2e3a772acbb07787c6308e00d9626ff89e3bfcdebe87fa5afbfdedf968",
+
"sha256:bf5824bfac591ddb2c1f0a5f4ab72da28994548c708d2191e3b87dd207eb3ad7",
+
"sha256:c0502c0fadef0d23b128605d69b58edb2c681c25d44574fc673b0e52dce71ee2",
+
"sha256:c38c71df845e2aabb7fb0b920d11a1b5ac8526005e533a8920aea97efb8ec6a4",
+
"sha256:ce15b6d103daff8e9fee13cf7f0add05245a05d866e73926c358e871221eae87",
+
"sha256:d3029c340cfbb3ac0a71798100ccc13b97dddf373a4ae56b6a72cf70dfd53bc8",
+
"sha256:e512d8ef5ad7b898cdb2d8ee1cb09a8339e4f8be706d27eaa180c2f177248a10",
+
"sha256:e8e5b509d5c2ff12f8418006d5a90e9436766133b564db0abaec92fd27fcee29",
+
"sha256:ee54ff27bf0afaf4c3b3a62bcd016c12c3fdb4ec4f413391a90bd38bc3624605",
+
"sha256:fa4537fb4a98fe8fde99626e4681cc644bdcf2a795038533f9f711513a862ae6",
+
"sha256:fd45ff9293d9274c5008a2054ecef86a9bfe819a67c7be1afb65e69b405b3042"
],
- "version": "==2020.5.14"
+ "version": "==2021.4.4"
},
"toml": {
"hashes": [
-
"sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f",
-
"sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"
+
"sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b",
+
"sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
],
- "version": "==0.10.1"
+ "version": "==0.10.2"
},
"typed-ast": {
"hashes": [
-
"sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355",
-
"sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919",
-
"sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa",
-
"sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652",
-
"sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75",
-
"sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01",
-
"sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d",
-
"sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1",
-
"sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907",
-
"sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c",
-
"sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3",
-
"sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b",
-
"sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614",
-
"sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb",
-
"sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b",
-
"sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41",
-
"sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6",
-
"sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34",
-
"sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe",
-
"sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4",
-
"sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7"
+
"sha256:07d49388d5bf7e863f7fa2f124b1b1d89d8aa0e2f7812faff0a5658c01c59aa1",
+
"sha256:14bf1522cdee369e8f5581238edac09150c765ec1cb33615855889cf33dcb92d",
+
"sha256:240296b27397e4e37874abb1df2a608a92df85cf3e2a04d0d4d61055c8305ba6",
+
"sha256:36d829b31ab67d6fcb30e185ec996e1f72b892255a745d3a82138c97d21ed1cd",
+
"sha256:37f48d46d733d57cc70fd5f30572d11ab8ed92da6e6b28e024e4a3edfb456e37",
+
"sha256:4c790331247081ea7c632a76d5b2a265e6d325ecd3179d06e9cf8d46d90dd151",
+
"sha256:5dcfc2e264bd8a1db8b11a892bd1647154ce03eeba94b461effe68790d8b8e07",
+
"sha256:7147e2a76c75f0f64c4319886e7639e490fee87c9d25cb1d4faef1d8cf83a440",
+
"sha256:7703620125e4fb79b64aa52427ec192822e9f45d37d4b6625ab37ef403e1df70",
+
"sha256:8368f83e93c7156ccd40e49a783a6a6850ca25b556c0fa0240ed0f659d2fe496",
+
"sha256:84aa6223d71012c68d577c83f4e7db50d11d6b1399a9c779046d75e24bed74ea",
+
"sha256:85f95aa97a35bdb2f2f7d10ec5bbdac0aeb9dafdaf88e17492da0504de2e6400",
+
"sha256:8db0e856712f79c45956da0c9a40ca4246abc3485ae0d7ecc86a20f5e4c09abc",
+
"sha256:9044ef2df88d7f33692ae3f18d3be63dec69c4fb1b5a4a9ac950f9b4ba571606",
+
"sha256:963c80b583b0661918718b095e02303d8078950b26cc00b5e5ea9ababe0de1fc",
+
"sha256:987f15737aba2ab5f3928c617ccf1ce412e2e321c77ab16ca5a293e7bbffd581",
+
"sha256:9ec45db0c766f196ae629e509f059ff05fc3148f9ffd28f3cfe75d4afb485412",
+
"sha256:9fc0b3cb5d1720e7141d103cf4819aea239f7d136acf9ee4a69b047b7986175a",
+
"sha256:a2c927c49f2029291fbabd673d51a2180038f8cd5a5b2f290f78c4516be48be2",
+
"sha256:a38878a223bdd37c9709d07cd357bb79f4c760b29210e14ad0fb395294583787",
+
"sha256:b4fcdcfa302538f70929eb7b392f536a237cbe2ed9cba88e3bf5027b39f5f77f",
+
"sha256:c0c74e5579af4b977c8b932f40a5464764b2f86681327410aa028a22d2f54937",
+
"sha256:c1c876fd795b36126f773db9cbb393f19808edd2637e00fd6caba0e25f2c7b64",
+
"sha256:c9aadc4924d4b5799112837b226160428524a9a45f830e0d0f184b19e4090487",
+
"sha256:cc7b98bf58167b7f2db91a4327da24fb93368838eb84a44c472283778fc2446b",
+
"sha256:cf54cfa843f297991b7388c281cb3855d911137223c6b6d2dd82a47ae5125a41",
+
"sha256:d003156bb6a59cda9050e983441b7fa2487f7800d76bdc065566b7d728b4581a",
+
"sha256:d175297e9533d8d37437abc14e8a83cbc68af93cc9c1c59c2c292ec59a0697a3",
+
"sha256:d746a437cdbca200622385305aedd9aef68e8a645e385cc483bdc5e488f07166",
+
"sha256:e683e409e5c45d5c9082dc1daf13f6374300806240719f95dc783d1fc942af10"
],
- "version": "==1.4.1"
+ "version": "==1.4.2"
}
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/README.rst
new/django-attachments-1.9.1/README.rst
--- old/django-attachments-1.8/README.rst 2020-08-31 13:02:31.000000000
+0200
+++ new/django-attachments-1.9.1/README.rst 2021-04-27 22:12:56.000000000
+0200
@@ -22,20 +22,26 @@
=============
1. Put ``attachments`` to your ``INSTALLED_APPS`` in your ``settings.py``
- within your django project::
+ within your django project:
+
+ .. code-block:: python
- INSTALLED_APPS = (
- ...
- 'attachments',
- )
+ INSTALLED_APPS = (
+ ...
+ 'attachments',
+ )
-2. Add the attachments urlpattern to your ``urls.py``::
+2. Add the attachments urlpattern to your ``urls.py``:
- url(r'^attachments/', include('attachments.urls',
namespace='attachments')),
+ .. code-block:: python
-3. Migrate your database::
+ url(r'^attachments/', include('attachments.urls',
namespace='attachments')),
- ./manage.py migrate
+3. Migrate your database:
+
+ .. code-block:: shell
+
+ ./manage.py migrate
4. Grant the user some permissions:
@@ -62,7 +68,9 @@
django-attachments stores the files in your site_media directory and does not
modify
them. For example, if an user uploads a .html file your webserver will
probably display
it in HTML. It's a good idea to serve such files as plain text. In a Apache2
-configuration this would look like::
+configuration this would look like:
+
+.. code-block:: apache
<Location /site_media/attachments>
AddType text/plain .html .htm .shtml .php .php5 .php4 .pl .cgi
@@ -72,9 +80,11 @@
House-keeping
=============
-django-attachments provides the ``delete_stale_sttachments`` management
command.
+django-attachments provides the ``delete_stale_attachments`` management
command.
It will remove all attachments for which the related objects don't exist
anymore!
-Sys-admins could then::
+Sys-admins could then:
+
+.. code-block:: shell
./manage.py delete_stale_attachments
@@ -84,18 +94,24 @@
Tests
=====
-Run the testsuite in your local environment using ``pipenv``::
+Run the testsuite in your local environment using ``pipenv``:
+
+.. code-block:: shell
$ cd django-attachments/
$ pipenv install --dev
$ pipenv run pytest attachments/
-Or use tox to test against various Django and Python versions::
+Or use tox to test against various Django and Python versions:
+
+.. code-block:: shell
$ tox -r
You can also invoke the test suite or other 'manage.py' commands by calling
-the ``django-admin`` tool with the test app settings::
+the ``django-admin`` tool with the test app settings:
+
+.. code-block:: shell
$ cd django-attachments/
$ pipenv install --dev
@@ -111,7 +127,9 @@
django-attachments provides a inline object to add a list of attachments to
any kind of model in your admin app.
-Simply add ``AttachmentInlines`` to the admin options of your model. Example::
+Simply add ``AttachmentInlines`` to the admin options of your model. Example:
+
+.. code-block:: python
from django.contrib import admin
from attachments.admin import AttachmentInlines
@@ -124,7 +142,9 @@
In your frontend templates:
---------------------------
-First of all, load the attachments_tags in every template you want to use it::
+First of all, load the attachments_tags in every template you want to use it:
+
+.. code-block:: html+django
{% load attachments_tags %}
@@ -136,26 +156,34 @@
list is stored in the template context (this is required in Django 1.8). If
you do not define a variable name, the result is printed instead.
- {% get_attachments_for entry as "attachments_list" %}
+ .. code-block:: html+django
+
+ {% get_attachments_for entry as "attachments_list" %}
2. ``attachments_count [object]``: Counts the attachments for the given
- model instance and returns an int::
+ model instance and returns an int:
- {% attachments_count entry %}
+ .. code-block:: html+django
+
+ {% attachments_count entry %}
3. ``attachment_form``: Renders a upload form to add attachments for the given
- model instance. Example::
+ model instance. Example:
+
+ .. code-block:: html+django
- {% attachment_form [object] %}
+ {% attachment_form [object] %}
It returns an empty string if the current user is not logged in.
4. ``attachment_delete_link``: Renders a link to the delete view for the given
- *attachment*. Example::
+ *attachment*. Example:
+
+ .. code-block:: html+django
- {% for att in attachments_list %}
- {{ att }} {% attachment_delete_link att %}
- {% endfor %}
+ {% for att in attachments_list %}
+ {{ att }} {% attachment_delete_link att %}
+ {% endfor %}
This tag automatically checks for permission. It returns only a html link
if the
give n attachment's creator is the current logged in user or the user has
the
@@ -164,7 +192,7 @@
Quick Example:
==============
-::
+.. code-block:: html+django
{% load attachments_tags %}
{% get_attachments_for entry as my_entry_attachments %}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/attachments/apps.py
new/django-attachments-1.9.1/attachments/apps.py
--- old/django-attachments-1.8/attachments/apps.py 2020-08-17
15:10:02.000000000 +0200
+++ new/django-attachments-1.9.1/attachments/apps.py 2021-04-29
15:09:54.000000000 +0200
@@ -5,5 +5,6 @@
class AttachmentsConfig(AppConfig):
+ default_auto_field = 'django.db.models.AutoField'
name = "attachments"
verbose_name = _("Attachments")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/django-attachments-1.8/django_attachments.egg-info/PKG-INFO
new/django-attachments-1.9.1/django_attachments.egg-info/PKG-INFO
--- old/django-attachments-1.8/django_attachments.egg-info/PKG-INFO
2020-09-03 12:04:58.000000000 +0200
+++ new/django-attachments-1.9.1/django_attachments.egg-info/PKG-INFO
2021-04-30 15:53:31.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: django-attachments
-Version: 1.8
+Version: 1.9.1
Summary: django-attachments is generic Django application to attach Files
(Attachments) to any model.
Home-page: https://github.com/bartTC/django-attachments
Author: Martin Mahner
@@ -30,20 +30,26 @@
=============
1. Put ``attachments`` to your ``INSTALLED_APPS`` in your
``settings.py``
- within your django project::
+ within your django project:
+
+ .. code-block:: python
- INSTALLED_APPS = (
- ...
- 'attachments',
- )
+ INSTALLED_APPS = (
+ ...
+ 'attachments',
+ )
- 2. Add the attachments urlpattern to your ``urls.py``::
+ 2. Add the attachments urlpattern to your ``urls.py``:
- url(r'^attachments/', include('attachments.urls',
namespace='attachments')),
+ .. code-block:: python
- 3. Migrate your database::
+ url(r'^attachments/', include('attachments.urls',
namespace='attachments')),
- ./manage.py migrate
+ 3. Migrate your database:
+
+ .. code-block:: shell
+
+ ./manage.py migrate
4. Grant the user some permissions:
@@ -70,7 +76,9 @@
django-attachments stores the files in your site_media directory and
does not modify
them. For example, if an user uploads a .html file your webserver will
probably display
it in HTML. It's a good idea to serve such files as plain text. In a
Apache2
- configuration this would look like::
+ configuration this would look like:
+
+ .. code-block:: apache
<Location /site_media/attachments>
AddType text/plain .html .htm .shtml .php .php5 .php4 .pl .cgi
@@ -80,9 +88,11 @@
House-keeping
=============
- django-attachments provides the ``delete_stale_sttachments``
management command.
+ django-attachments provides the ``delete_stale_attachments``
management command.
It will remove all attachments for which the related objects don't
exist anymore!
- Sys-admins could then::
+ Sys-admins could then:
+
+ .. code-block:: shell
./manage.py delete_stale_attachments
@@ -92,18 +102,24 @@
Tests
=====
- Run the testsuite in your local environment using ``pipenv``::
+ Run the testsuite in your local environment using ``pipenv``:
+
+ .. code-block:: shell
$ cd django-attachments/
$ pipenv install --dev
$ pipenv run pytest attachments/
- Or use tox to test against various Django and Python versions::
+ Or use tox to test against various Django and Python versions:
+
+ .. code-block:: shell
$ tox -r
You can also invoke the test suite or other 'manage.py' commands by
calling
- the ``django-admin`` tool with the test app settings::
+ the ``django-admin`` tool with the test app settings:
+
+ .. code-block:: shell
$ cd django-attachments/
$ pipenv install --dev
@@ -119,7 +135,9 @@
django-attachments provides a inline object to add a list of
attachments to
any kind of model in your admin app.
- Simply add ``AttachmentInlines`` to the admin options of your model.
Example::
+ Simply add ``AttachmentInlines`` to the admin options of your model.
Example:
+
+ .. code-block:: python
from django.contrib import admin
from attachments.admin import AttachmentInlines
@@ -132,7 +150,9 @@
In your frontend templates:
---------------------------
- First of all, load the attachments_tags in every template you want to
use it::
+ First of all, load the attachments_tags in every template you want to
use it:
+
+ .. code-block:: html+django
{% load attachments_tags %}
@@ -144,26 +164,34 @@
list is stored in the template context (this is required in Django
1.8). If
you do not define a variable name, the result is printed instead.
- {% get_attachments_for entry as "attachments_list" %}
+ .. code-block:: html+django
+
+ {% get_attachments_for entry as "attachments_list" %}
2. ``attachments_count [object]``: Counts the attachments for the given
- model instance and returns an int::
+ model instance and returns an int:
- {% attachments_count entry %}
+ .. code-block:: html+django
+
+ {% attachments_count entry %}
3. ``attachment_form``: Renders a upload form to add attachments for
the given
- model instance. Example::
+ model instance. Example:
+
+ .. code-block:: html+django
- {% attachment_form [object] %}
+ {% attachment_form [object] %}
It returns an empty string if the current user is not logged in.
4. ``attachment_delete_link``: Renders a link to the delete view for
the given
- *attachment*. Example::
+ *attachment*. Example:
- {% for att in attachments_list %}
- {{ att }} {% attachment_delete_link att %}
- {% endfor %}
+ .. code-block:: html+django
+
+ {% for att in attachments_list %}
+ {{ att }} {% attachment_delete_link att %}
+ {% endfor %}
This tag automatically checks for permission. It returns only a
html link if the
give n attachment's creator is the current logged in user or the
user has the
@@ -172,7 +200,7 @@
Quick Example:
==============
- ::
+ .. code-block:: html+django
{% load attachments_tags %}
{% get_attachments_for entry as my_entry_attachments %}
@@ -204,6 +232,22 @@
Changelog:
==========
+ v1.9.1 (2021-04-30)
+ -------------------
+
+ - Rebuild the previous version but don't ship a left-over migration
file
+
+
+ v1.9 (2021-04-29) -- removed from PyPI
+ --------------------------------------
+
+ - Configure PK explicitly to AutoField for Django 3.2+, see
+
https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
+ - Start testing with Django 3.2
+ - Fix typo in README (Jesaja Everling)
+ - Enable syntax highlighting in README (Basil S)
+
+
v1.8 (2020-09-03)
-----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/setup.cfg
new/django-attachments-1.9.1/setup.cfg
--- old/django-attachments-1.8/setup.cfg 2020-09-03 12:04:58.000000000
+0200
+++ new/django-attachments-1.9.1/setup.cfg 2021-04-30 15:53:31.418493300
+0200
@@ -1,6 +1,6 @@
[metadata]
name = django-attachments
-version = 1.8
+version = 1.9.1
description = django-attachments is generic Django application to attach Files
(Attachments) to any model.
long_description = file: README.rst, CHANGELOG.rst
author = Martin Mahner
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-attachments-1.8/tox.ini
new/django-attachments-1.9.1/tox.ini
--- old/django-attachments-1.8/tox.ini 2020-09-03 01:22:25.000000000 +0200
+++ new/django-attachments-1.9.1/tox.ini 2021-04-29 11:34:10.000000000
+0200
@@ -7,9 +7,9 @@
py{27}-django-{111}
py{35,36,37}-django-{111,20}
py{35,36,37}-django-{21,22}
- py{36,37,38}-django-{30,31}
+ py{36,37,38}-django-{30,31,32}
end
- {mariadb,postgresql}-django-31
+ {mariadb,postgresql}-django-32
[testenv]
commands=
@@ -21,6 +21,7 @@
django-22: django==2.2.*
django-30: django==3.0.*
django-31: django==3.1.*
+ django-32: Django==3.2.*
postgresql: psycopg2-binary
mariadb: mysqlclient
coverage