Commits

Oben Sonne  committed 84b459c

Pages may be locked (uneditable)

  • Participants
  • Parent commits 08ba5f1

Comments (0)

Files changed (2)

File dingeling/models.py

     labels = models.ManyToManyField(Label)
     links = models.ManyToManyField("self", symmetrical=True)
     modified = models.DateTimeField("last modified", auto_now=True)
+    locked = models.BooleanField()
+    locked.defaul = False
 
     def friends(self):
         friends = []

File dingeling/templates/page.html

 </ul>
 </div>
 
+{% if not page.locked %}
 <div class="edit">
 <a href="/edit/{{ page.name }}">Edit</a>
 <a href="/delete/{{ page.name }}">Delete</a>
 </div>
+{% endif %}
 </div>
 {% endblock %}