from django import forms

from foialist.models import *


class FileForm(forms.ModelForm):
    class Meta:
        model = File
        exclude = ('entry', 'size')
    
    
class EntryForm(forms.ModelForm):
    govt_entity = forms.CharField(label="Gov't. entity")
    
    class Meta:
        model = Entry
        fields = ('title', 'narrative', 'govt_entity', 'date_requested', 
                  'date_filed', 'poster', 'email')


class CommentForm(forms.ModelForm):
    poster = forms.CharField()

    class Meta:
        model = Comment
from django import forms

from foialist.models import *


class FileForm(forms.ModelForm):
    class Meta:
        model = File
        exclude = ('entry', 'size')
    
    
class EntryForm(forms.ModelForm):
    govt_entity = forms.CharField(label="Gov't. entity")
    
    class Meta:
        model = Entry
    #    exclude = ('slug', 'poster_slug', 'show', 'date_posted', 'entity')
        fields = ('title', 'narrative', 'government_entity', 'date_requested', 'date_filed', 'poster', 'email')


class CommentForm(forms.ModelForm):
    poster = forms.CharField()

    class Meta:
        model = Comment
--- 
+++ 
@@ -14,8 +14,8 @@
     
     class Meta:
         model = Entry
-    #    exclude = ('slug', 'poster_slug', 'show', 'date_posted', 'entity')
-        fields = ('title', 'narrative', 'government_entity', 'date_requested', 'date_filed', 'poster', 'email')
+        fields = ('title', 'narrative', 'govt_entity', 'date_requested', 
+                  'date_filed', 'poster', 'email')
 
 
 class CommentForm(forms.ModelForm):
Correct mismatched field names in EntryForm.
