Multiple references to same field

2011-11-22 Thread Dejan Noveski
ts.get(id=0) Now, I want entry.post to be entry.parent. But I also want to be able to filter by the "virtual" field post. Say Entry.objects.get(post__id__in=[something]) Is this possible at all? Thanks and cheers! -- -- Dejan Noveski -- You received this message because you are subscribed

Dynamic parameters in django URLs

2011-09-29 Thread Dejan Noveski
without declaring each possible combination of url params? Thanks -- -- Dejan Noveski <http://twitter.com/dekomote> -- 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@goog

Re: Wired image file upload problem

2011-09-29 Thread Dejan Noveski
-users?hl=en. >> > > -- > 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..

Re: how to call an external Javascript using static serve() in Django?

2010-06-09 Thread Dejan Noveski
ssage because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit thi

Re: how to fetch query string in the view

2010-06-09 Thread Dejan Noveski
cribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http:

Formats and localization

2010-06-08 Thread Dejan Noveski
e this for generating links and i need the clean number. Please no dirty hacks of removing the separator. Thank you. -- -- Dejan Noveski Web Developer dr.m...@gmail.com Twitter: http://twitter.com/dekomote | LinkedIn: http://mk.linkedin.com/in/dejannoveski -- You received this message because you are

Re: Resize uploaded file file with PIL

2010-05-26 Thread Dejan Noveski
Gonsalves > > Senior Associate > > NRC-FOSS at AU-KBC > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, s

Grouping of applications in admin

2010-05-25 Thread Dejan Noveski
Hello, Is there a way i can group admin models from different applications to show in one container in admin initial page? Thanks, Dejan -- -- Dejan Noveski Web Developer dr.m...@gmail.com Twitter: http://twitter.com/dekomote | LinkedIn: http://mk.linkedin.com/in/dejannoveski -- You received

Re: If is first time logging in

2010-05-19 Thread Dejan Noveski
he form is a necessary part of their job. I just > want to know how to make it really obvious to them the first time they > login. > > > > On May 19, 4:36 pm, Dejan Noveski wrote: > > Best will be if you make Useraccount model that will inherit from User, > add > > f

Re: If is first time logging in

2010-05-19 Thread Dejan Noveski
e Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups

Form Field and Form instance

2010-05-19 Thread Dejan Noveski
Hi all, Is there any way to get the form object in a field class? Something similar to contribute_to_class in model forms? Thanks -- -- Dejan Noveski Web Developer dr.m...@gmail.com Twitter: http://twitter.com/dekomote | LinkedIn: http://mk.linkedin.com/in/dejannoveski -- You received this

Re: Form validation

2010-05-19 Thread Dejan Noveski
> > >user = User.objects.get(pk=request.user.id) from = UpdateUserForm(user, ...initialstuff...) > First off, change this to form = UpdateUserForm(request.user,...) request.user is django.contrib.auth.User object. You have to have -- -- Dejan Noveski Web Developer dr.m.

Re: Form validation

2010-05-19 Thread Dejan Noveski
On Wed, May 19, 2010 at 3:11 PM, Dejan Noveski wrote: > >>user = User.objects.get(pk=request.user.id) > >from = UpdateUserForm(user, ...initialstuff...) >> > > First off, change this to form = UpdateUserForm(request.user,...) > request.user is django.contrib

Localized fields in modelforms/modeladmin

2010-05-18 Thread Dejan Noveski
Hi everybody, Is there a way i can localize some of the form fields from the ModelForm class or ModelAdmin class? -- -- Dejan Noveski Web Developer dr.m...@gmail.com Twitter: http://twitter.com/dekomote | LinkedIn: http://mk.linkedin.com/in/dejannoveski -- You received this message because