(Please excuse my meaningless title as English is not my natural language).
I would like some advice on how pythonic/heretic my approach is. What I am trying to do is: - subclass standard Form class (e.g to add new rendering methods) - subclass some fields and widgets (e.g to add custom CSS attributes) - replace all import statements "from django import forms" with "from my_project import forms" And that's all! Class names referred in my project (Form, RadioSelect, DateField...) should not change. I came up with the following module excerpt (myproject/forms.py): from django.forms import * class Form(Form): def my_rendering_method(self): (...) See my issue? To guarantee transparency between my own custom 'forms' module and the standard one, I am subclassing but keeping the same name, though I am not sure whether this is sane or not in Python... Should I stick with custom class names and refer to them throughout my project instead? Thanks for any feedback, Thierry. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---