hi list,

im trying to customise the django comment form and i have no problems
subclassing the Comment model and add my custom fields but i would need
to remove the name, url and email fields because i will let only logged
in users add and see comments in my project and the app fills the fields
in automatically if the user is authenticated.

i could do this via css by hiding the fields but i think its not an
elegant way.
by trying to exclude fields or define the fields which should be shown
via Meta class i constantly get errors like "AttributeError: type object
'CommentForm' has no attribute 'Meta'" or "TypeError: 'class Meta' got
invalid attribute(s): fields"

in the 'Customizing the comments framework' doc i read "if you want to
substantially remove or change the fields available in the Comment
model, but don't want to rewrite the templates, you could try
subclassing from BaseCommentAbstractModel." but in this abstractmodel
there are no fields defined... does that mean i have to add them in my
custom model?

thank you for any help... im trying to understand how subclassing works.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to