Programmaticly declaring Models and caching in Admin contrib

2011-04-17 Thread Yuka Poppe
gnals. Regard, Yuka -- 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 django-users+unsubscr...@googlegroups.com. For more opti

Re: Using composition in Django

2011-04-16 Thread Yuka Poppe
: class Person(models.Model): first_name ... last_name ... class Adress(models.Model): street ... city ... class Employee(Person, Adress): pass Regards, Yuka On Sat, Apr 16, 2011 at 10:35 PM, Guevara wrote: > Hello! > I have two class, Person and employee, i ne

Re: Put an "inline" at the top of admin form instead of bottom?

2011-04-16 Thread Yuka Poppe
think its all documented in the admin section of the manual. Yuka On Sat, Apr 16, 2011 at 5:30 AM, Jeff Blaine wrote: > I'm using the admin functionality for most of my needs (a nice CRUD DB > frontend, not a user-facing website).  Is there a best way to get one of my > inline models pr

Re: Python quit unexpectedly

2011-04-16 Thread Yuka Poppe
ere being atleast 4, all with different dependencies. What happens when you open a shell and do a "from grappelli import *"? Is there any other information being reported besides that error, what does the console report before it crashes? Yuka -- You received this message because you

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Yuka Poppe
e note that if you do try to extend 'myapp/base.html' for the app based template directories, it would actually look in /whatever/myproject/myapp/templates/myapp/base.html, this might seem confusing at first. Hope this helps, Yuka On Thu, Apr 14, 2011 at 10:38 PM, Jeff Blaine wrote: > Gl

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Yuka Poppe
e to shape this according to your needs just fine. Yuka On Thu, Apr 14, 2011 at 8:48 PM, Yuka Poppe wrote: > Hi Rick, > > Ok, I did a quick skim over the BaseForm; Validation is called by the > method is_valid(), which inturn accesses the property self.errors -- > And thus _get_errors

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Yuka Poppe
users to be aware, and this way you can patch right into the existing validation cycle. Hope I'm making some sense, Yuka On Thu, Apr 14, 2011 at 8:18 PM, ricksteu wrote: > Hi Yuka - We do want to do the cleaning at the form level, basically > because we don't want to use a CharF

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Yuka Poppe
ds if I'm not mistaken, so thats the route I would choose in this case. Also yes, you could make a copy of the POST data, modify that and pass it to the form constructor, but as you mentioned that doesnt seem very nice way to handle things. Hope this is of some assistance. -- Regards, Yu

Re: get_object_or_404 Tutorial part 3

2011-04-13 Thread Yuka Poppe
byte padding to fool these beasts though -- assuming that would work -- just because I hate poluting neat source code ;-) -- Regards, Yuka -- 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

Re: referencing fields on the model without F()

2011-04-13 Thread Yuka Poppe
You could possibly resort to the extra() queryset method, allthough it eats raw sql, its documented in the manual. Im not sure if its in 0.96 though. -- Regards, Yuka On Wed, Apr 13, 2011 at 3:09 PM, Roman Klesel wrote: > Hello, > > I have an old version of django here where the F()

Re: get_object_or_404 Tutorial part 3

2011-04-13 Thread Yuka Poppe
andom variation to it when it did and didnt occur, but I'll have to say I didnt put a lot of energy into finding out. -- Regards, Yuka On Wed, Apr 13, 2011 at 3:02 PM, darekodz wrote: > I've very strange error in part 3. I want to test using function > get_object_or_404. I've

Re: FormSet in Wizard

2009-04-02 Thread Yuka
seFormSet): return security_func(request, form) return security_hash(request, form) -- Best Regards, Yuka Poppe. On Feb 4, 5:18 pm, Austin Gabel wrote: > Hello, > > I am trying to set up a Django FormWizard to add users to my site.  On one > of the steps I need to be a