Re: Best way to accomplish model inheritance

2006-12-24 Thread favo
Hi Aaron, I know there're two way to use model inheritance with current django. both are not perfect, you could choice what you need. That's say model inheritance is still not a feature of django, but should be one imo. 1. as you said, use OneToOne field class Place(models.Model):

Re: forcing UTF8 data inside django

2006-12-12 Thread favo
I think you'd better enforce de/encoding to settings.DEFAULT_CHARSET in the middleware. not hardcode utf8. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Submission rejected as potential spam (Akismet says content is spam)

2006-11-28 Thread favo
Thanks Don and James. --~--~-~--~~~---~--~~ 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 PR

Re: Multiple-files model doens't work

2006-11-03 Thread favo
Please check multiple model file: models/ __init__.py model_a.py model_b.py in model_x.py set app_label in Meta manually in __init__.py: from model_a import * from model_b import * --~--~-~--~~~---~--~~ You received this message because you

Re: Comments and karma tutorial

2006-10-25 Thread favo
I 'm a little bit sad about django has some part without document and test. we'd better add patch for them. and it's hard to refactor code in trunk if you're not the main author. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Comments and karma tutorial

2006-10-25 Thread favo
I 'm a little bit said about django has some part without document and test. we'd better add patch for them. and it's hard to refactor code in trunk if you're not the main author. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: INSTALLED_APPS partially shown in admin with mod_python

2006-07-31 Thread favo
I got the same error, Kilian, you fix it. it's very strange mod_python didn;t work as intergated server! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: FileBrowser Test Version

2006-07-12 Thread favo
could anyone can help va:patrick.kranzlmueller to setup a open svn trunk even with a trac system? It's very hard to communicte with feedback - upload - feedback... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Announce: Django Performance Monitoring

2006-07-10 Thread favo
Ask very carefully, Do you want to make it OS? If you feel not happy with the question, just ignore it please. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: FileBrowser Test Version

2006-07-09 Thread favo
It's very cool, open svn address is better:-) --~--~-~--~~~---~--~~ 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,

Re: how to use instance method in the validator_list of a field in model?

2006-06-02 Thread favo
I got a way to do these, however a little magic because the logic in django.db.models.manipulators.ManipulatorDescriptor.__get__ : ... bases = [self.base] if hasattr(model, 'Manipulator'): # here we have a chance to add something to the auto-manipulator. bases

Re: how to use instance method in the validator_list of a field in model?

2006-06-01 Thread favo
Luke Plant wrote: > On Wednesday 31 May 2006 07:36, favo wrote: > > somebody know how to use instance method in the validator_list of a > > field in model? I can't get the "self". > > > > class Category(models.Model): > > ""&qu

Re: Django magic removeral still support models in multiple files?

2006-05-31 Thread favo
completed. see the post: http://groups.google.com/group/django-developers/browse_thread/thread/f6e773019512b794/485accada6989f0c --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread favo
That's what I try to, however, below is what I print the all_data of my module level validator arguments: there's no id parameters!! what a bad news. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Django magic removeral still support models in multiple files?

2006-05-31 Thread favo
I put code in directory structure below, appsname\ models\ __init__.py model1.py # have a class named Model1 __init__.py : __all__ = ['model1'] from Model1 import model1 I have see the code in django.db.model.ModelBase.__new

Django magic removeral still support models in multiple files?

2006-05-31 Thread favo
I have check the document about Model, but can't find any help about models in multiple files. Django magic removeral still support models in multiple files? only we can do is write models in models.py?? --~--~-~--~~~---~--~~ You received this message because you

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread favo
However, how to replace the default changeManipulator used by django-admin? --~--~-~--~~~---~--~~ 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

how to use instance method in the validator_list of a field in model?

2006-05-30 Thread favo
somebody know how to use instance method in the validator_list of a field in model? I can't get the "self". class Category(models.Model): """ Inhert Category """ title_en = models.CharField(maxlength=256, null=True) parent = models.ForeignKey('self', related_name="direct_children",

Re: Accessing instance values in a model...

2006-05-23 Thread favo
I have the same question. --~--~-~--~~~---~--~~ 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

Re: Can we hook ManyToMany default Manager in Admin site

2006-05-23 Thread favo
sorry for wrong url, correct : http://groups.google.com/group/django-users/browse_thread/thread/0f2be868801ddcbd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

can Transcation middleware work with Transcation decorators?

2006-05-23 Thread favo
Can they work together? --~--~-~--~~~---~--~~ 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 P

Re: Can we hook ManyToMany default Manager in Admin site

2006-05-23 Thread favo
http://groups.google.com/group/django-users/browse_thread/thread/ae4387ae91ed6eb2 Yeah, I found it. however I think we need more agility way to hook the querysets. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Can't order the FK in admin?

2006-05-23 Thread favo
I use the limit_choices_to in FK to custom a FK choices, but how to order it. in the Django, we have to order a Queryset bt order_by() method, but limit_choices only need a dict or a Q object. I don't want touch Database. Is there a method to deal with? --~--~-~--~~~

Re: Can we hook ManyToMany default Manager in Admin site

2006-05-21 Thread favo
2006 00:00:44 + (UTC) From: "favo" <[EMAIL PROTECTED]> To: "Django users" Subject: Re: Can we hook ManyToMany default Manager in Admin site Date: Mon, 22 May 2006 00:00:44 - Message-ID: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> References: &l

Re: How to write a module level method rather than a instance method

2006-05-21 Thread favo
Yes, some documents should be updated. --~--~-~--~~~---~--~~ 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 em

Can we hook ManyToMany default Manager in Admin site

2006-05-21 Thread favo
can we modify the default Manager for ManyToMany relation used in Admin SIte? class entity(models.Model): color = models.ManyToManyField(Color) I want to hook something to custom color List in Entity's detail page. --~--~-~--~~~---~--~~ You received this m

How to write a module level method rather than a instance method

2006-05-20 Thread favo
s.com with HTTP; Sun, 21 May 2006 04:59:28 + (UTC) From: "favo" <[EMAIL PROTECTED]> To: "Django users" Subject: How to write a module level method rather than a instance method Date: Sat, 20 May 2006 21:59:28 -0700 Message-ID: <[EMAIL PROTECTED]> User-

How to add a superuser?

2006-05-20 Thread favo
I know there's createsuperuser in old django, however how to now? --~--~-~--~~~---~--~~ 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 unsubscri

Re: URLField Limit 200 maxlenght

2006-03-08 Thread favo
I have filed a ticket & have to wait --~--~-~--~~~---~--~~ 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 emai

URLField Limit 200 maxlenght

2006-03-06 Thread favo
URLField is limit to 200 maxlenght, and not expose a agrument to change, hope that fix in next version of Django. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

another bug caused importing import DJANGO_SETTINGS_MODULE error?

2006-03-06 Thread favo
anyone meet the bug below? if your have a app have the same name as projectname, manage.py will always print out : Traceback (most recent call last): File "./manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1051, i