On 31/10/06, Enoch <[EMAIL PROTECTED]> wrote: > > Hi > > I have used Django for 2 months, and I really enjoy the rich features > of django framework. Now I have a question and hope I can get help > here. > > I'd like to write my own Models Field which likes EmailField, FileField > integrated with Django. I read all the Models related documents but > didn't get any clue how to start it. My basic requests may include > > 1) I hope my field can inherit from Django defualt Models, including > "models.ManyToManyField" and "models.ForeignKey". > > For example now I need a MyForeignKey field inherit from ForeignKey, I > will override the default "save()" functions and may add more functions > > 2) I hope the new Field that I created can still utilize the functions > of "model", "admin", "generic view" etc > > 3) If it's possible I hope put the codes in a new app rather than hack > the django original files > > I'm still a newbie of django framework, but I I'd like to learn it, use > it more and more. This is my first post here, if there is anything > already there which I can read please let me know, any suggestion > appreciated.
Not much documentation on this area. (There could well be something on the wiki) Luckily, some one has written about it here (http://blog.tkbe.org/). > > > > > -- http://grimboy.co.uk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---