X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7d6fe886cb8f50060e5d5214073ace9ed5218744..65272584c324400613b037432b3802f9956ef5d6:/apps/wiki/views.py?ds=inline diff --git a/apps/wiki/views.py b/apps/wiki/views.py index e0e2f085..0fc52f3c 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -108,9 +108,6 @@ def text(request, doc_id): # else: # parent = None stage = form.cleaned_data['stage'] - # tags = [stage] if stage else [] - # publishable = (form.cleaned_data['publishable'] and - # request.user.has_perm('catalogue.can_pubmark')) try: doc.commit( author=author, @@ -139,7 +136,7 @@ def text(request, doc_id): try: revision = int(revision) except (ValueError, TypeError): - revision = doc.revision() + revision = doc.revision if revision is not None: text = doc.at_revision(revision).materialize()