On 6/14/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 6/13/06, Sam Tran <[EMAIL PROTECTED]> wrote:
> > Now we want to use the same model to create a contact tree for a given
> > user: we determine who this user can view, e.g. personal phone
> > numbers. The tables have different name but have the same function.
> > Obviously we'd like to use the same views as for the hierarchy tree.
> >
> > My question is the following:
> > Should we upgrade to the latest version of Django before making these
> > views generic or can we make these views generic in 0.91 then easily
> > port the code to the latest version of Django?
>
> Hi Sam,
>
> I don't really understand you particular setup/goal, but I would
> strongly suggest moving to the latest version of Django, period.
>

Hi Adrian,

Thank you for the suggestion. I will try to upgrade to the latest
version as soon as possible.
As for my initial question I apologize for the confusion, I didn't
mean to use the generic views as described in the Django tutorials. I
want to be able to make some functions generic. Please let me give you
an example: http://paste.e-scribe.com/423/

As you can see both functions are identical except for the database
table names and field names. Is it possible to write only one function
instead?

Thanks in advance.
Regards,
Sam

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to