Hi everyone, I have been working on a Django reporting tool for the company I work for and wonder if anyone thinks a reporting tool like attached would be valuable to the community??? I should say that it doesn't handle m2m yet but I am working on that. I would also want to clean the code up some and put it on google code but I want to pull the audience first to see if something like it would be welcomed. This is all the code that is needed in order to create the screenshot attached:
class StudentFieldForm(FieldForm):
class Meta:
model = Student
inline_models = [Demographics,Medical,Emergency]
inline_excludes = {'Medical':['student'],'Demographics':['student']}
exclude=('school','address','student','studentclass.student','access_restrictions','photo')
extra_fields={'Student':{'age':CALLABLE}}
class StudentReportSearchForm(SearchForm):
class Meta:
model = Student
inline_models = [Demographics,Medical,Emergency]
inline_excludes = {'Medical':['student'],'Demographics':['student']}
exclude=('school','address','student','studentclass.student','access_restrictions','photo')
extra_fields={'Student':{'age':CALLABLE},'Father':{'father_fname':CALLABLE}}
class StudentOrderSearchForm(OrderingForm):
class Meta:
model = Student
inline_models = [Demographics,Medical,Emergency]
inline_excludes = {'Medical':['student'],'Demographics':['student']}
exclude=('school','address','student','studentclass.student','access_restrictions','photo')
extra_fields={'Student':{'age':CALLABLE}}
StudentFieldsFormset =
formset_factory(StudentFieldForm,formset=FieldFormSet)
StudentReportFormset =
formset_factory(StudentReportSearchForm,formset=SearchBaseFormSet)
StudentOrderFormset = formset_factory(StudentOrderSearchForm)
--
Rick Caudill
--
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.
<<attachment: reporting-tool.png>>

