Browse Source

Upgrade Django to 2.0.3, yay!

tags/v1.9.4
Danielle McLean 1 year ago
parent
commit
365110544c
Signed by: Danielle McLean <dani@00dani.me> GPG Key ID: 5A5D2D1AFF12EEC5
3 changed files with 6 additions and 6 deletions
  1. 1
    1
      Pipfile
  2. 4
    4
      Pipfile.lock
  3. 1
    1
      micropub/views/create.py

+ 1
- 1
Pipfile View File

@@ -12,7 +12,7 @@ python_version = '3.6'
12 12
 
13 13
 [packages]
14 14
 
15
-django = ">=1.11,<2.0"
15
+django = "*"
16 16
 django-compressor = "*"
17 17
 gunicorn = "*"
18 18
 "psycopg2" = "*"

+ 4
- 4
Pipfile.lock View File

@@ -1,7 +1,7 @@
1 1
 {
2 2
     "_meta": {
3 3
         "hash": {
4
-            "sha256": "266f9ea66b0c2e5de023d3adbb665c72ad8260e22222a3db871eeab310ba5f8b"
4
+            "sha256": "a824f0af4df1d0088d5dd66db92329358a5cf0095c71f1cb59f6e60583b912f5"
5 5
         },
6 6
         "host-environment-markers": {
7 7
             "implementation_name": "cpython",
@@ -146,10 +146,10 @@
146 146
         },
147 147
         "django": {
148 148
             "hashes": [
149
-                "sha256:fd186d544c7c2f835668cf11f77be071307c9eb22615a5b3a16bdb14c8357f41",
150
-                "sha256:74077d7309b48b97dacdac2dfb35c968028becf00a7a684e7f29b2af1b980edc"
149
+                "sha256:3d9916515599f757043c690ae2b5ea28666afa09779636351da505396cbb2f19",
150
+                "sha256:769f212ffd5762f72c764fa648fca3b7f7dd4ec27407198b68e7c4abf4609fd0"
151 151
             ],
152
-            "version": "==1.11.11"
152
+            "version": "==2.0.3"
153 153
         },
154 154
         "django-activeurl": {
155 155
             "hashes": [

+ 1
- 1
micropub/views/create.py View File

@@ -68,7 +68,7 @@ def create(request):
68 68
 
69 69
     entry.kind = kind.id
70 70
     entry.save()
71
-    entry.cats = cats
71
+    entry.cats.set(cats)
72 72
     entry.save()
73 73
 
74 74
     base = utils.origin(request)

Loading…
Cancel
Save