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):
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
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
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
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
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
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
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
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
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,
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
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
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
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"
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
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
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
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",
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
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 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
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
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?
--~--~-~--~~~
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
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 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
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-
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
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 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
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
31 matches
Mail list logo