Use libmagic to extract the file's creation year
[oweals/karmaworld.git] / karmaworld / apps / notes / forms.py
index 17ba9909d4ce0cf52c6f0825665ecbc2c2b8c43c..1207b02baf4cfb3ba5874d2cfdb018adaa19eef4 100644 (file)
@@ -3,10 +3,14 @@
 # Copyright (C) 2012  FinalsClub Foundation
 
 from django.forms import ModelForm
+from django.forms import TextInput
 
 from karmaworld.apps.notes.models import Note
 
 class NoteForm(ModelForm):
     class Meta:
         model = Note
-        fields = ('name', 'tags', 'desc',)
+        fields = ('name', 'tags', 'year',)
+        widgets = {
+          'name': TextInput()
+        }