On Fri, 2006-08-04 at 10:09 -0700, Ahmad Alhashemi wrote:
[...]
> The problem here is that the base and extending templates are not
> always managed by the same person.
>
> Consider the case of the admin templates for example. Sometimes you
> just want to create your own base template to change t
On Fri, 2006-08-04 at 10:28 -0600, Joseph Kocherhans wrote:
> On 8/4/06, Bjørn Stabell <[EMAIL PROTECTED]> wrote:
> >
> > Just a question; how does this compare pros and cons with single-table
> > inheritance, used in Rails? See:
> >
> > http://twelvelabs.com/singletable/index.html
You probabl
On Fri, 2006-08-04 at 14:01 -0500, Tom Tobin wrote:
> On 8/4/06, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote:
> >
> > In Rails, template tags can have an extra hyphen at the end to denote
> > the fact that they should consume the newline right after the tag. So:
> >
> > {% some_tag %}
> >
> > Would
On 8/4/06, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote:
>
> In Rails, template tags can have an extra hyphen at the end to denote
> the fact that they should consume the newline right after the tag. So:
>
> {% some_tag %}
>
> Would look like this:
>
> {% some_tag -%}
I can't help but feel that this
You could just steal the field from the manipulator containing the
references.
Wouldn't this work;
class Model1(models.Model):
content = models.CharField(maxlength=100)
blah = models.CharField(maxlength=100)
ref_model2 = models.ForeignKey(Model2)
class UsageExample(CustomAdd
Malcolm Tredinnick wrote:
> I'm not a fan of infinite flexibility as solutions for undefined future
> problems, so it's good that you've put in some specific cases you've
> encountered. Food for thought here.
+1 on that.
All these suggestions are going to make Django much fatter. It will
make th
Hi,
Joseph and I had a discussion today about how to work our two projects
together. Here is what we decided upon.
Because Joseph is currently implementing default_has_permission by
using user.has_perm. I will be adding row level permissions to the
user.has_perm method. To allow for this, user.h
In Rails, template tags can have an extra hyphen at the end to denote
the fact that they should consume the newline right after the tag. So:
{% some_tag %}
Would look like this:
{% some_tag -%}
Isn't it possible to just add this functionality by making the newline
that comes right after the ta
> Regarding doing a "security audit", assuming you had some method of
> defining the default escaping (if any) it would seem easier and safer
> to audit if you were looking for cases where you didn't need to escape
> (the more rare case). But this is getting back to the main auto-escape
> discussi
Adrian Holovaty wrote:
> Sounds pretty good to me. Let's do it.
I opened a ticket and submitted a patch:
http://code.djangoproject.com/ticket/2482
My patch adds a keyword arguement to the 'values' method, as originally
proposed. It could be adapted pretty easily to Gary's suggestion of a
separa
On 8/4/06, Bjørn Stabell <[EMAIL PROTECTED]> wrote:
>
> Just a question; how does this compare pros and cons with single-table
> inheritance, used in Rails? See:
>
> http://twelvelabs.com/singletable/index.html
http://www.objectmatter.com/vbsf/docs/maptool/ormapping.html
Check out the section
Just a question; how does this compare pros and cons with single-table
inheritance, used in Rails? See:
http://twelvelabs.com/singletable/index.html
Rgds,
Bjorn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
On 8/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> As someone who spends most of my day job working in Djangos' template
> system, I can say that I would also prefer the same evaluation as Gary
> 99% of the time. I really think it should be the default.
I have to concur with Jeff; while
As far as I understand, these two models are absolutely separate (just
haing the same field "blah"). What about models with relationships? I
think, that is a tricky part. Especially, when the relationship is not
obligatory. Do you have any ideas how to implement a generic way for
that?
Regards,
A
On 8/4/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
On Fri, 2006-08-04 at 13:36 +0800, Russell Keith-Magee wrote:> Place.objects.filter(restaurant__chef_name='Bork')>> Any comments?I hate it (sorry).Apologies - I wasn't actually suggesting it or requesting it. I dislike it too; It just occurre
15 matches
Mail list logo