Re: Sadly shifting to php sob sob. Need help finding right framework

2008-10-06 Thread ionut
You should try Simfony: http://www.symfony-project.org On Oct 6, 10:12 am, binaryj <[EMAIL PROTECTED]> wrote: > i love Django . but my company is not so cool like me to try out > new things in life. > > Well i know people here would be using python but i guess a lot of > them would have some

Django limit_choices_to - ForeignKey

2014-07-23 Thread Ganea Ionut
Hello there, Recently i've been tasked with using the 'limit_choices_to' attribute of a ForeignKey field, in order to limit choices. My models are like this (params -> max_length, choices, etc): class DeviceFeatures(models.Model): # declare choices here: feature_choices # features = models.Ch

hidden field value inside if block

2014-02-10 Thread Ionut Oprescu
is there a way to verify a hidden field value inside a if statement? for example: {% if details.id_details == hdnIdDetalii.value %} code here {% endif %} something like this... *note!* i`m using python with google app engine, details is send from a .py file. the value of the hidden

Populating foreign key fields when displaying forms that extend ModelForm

2009-02-28 Thread Ionut Gabriel Stan
models.URLField(max_length=256) content = models.TextField() published = models.DateTimeField(auto_now_add=True) def __unicode__(self): return self. # form class CommentForm(ModelForm): class Meta: model = Comment exclude = ('post',) Any help gre

Re: .py!

2009-04-17 Thread Ionut G. Stan
ion for known file types". On 4/17/2009 10:53, 83nini wrote: > guys how do i create a .py file? > stupid question i know, but i'm new to django. > I am working on the tutorial and i don't know how to create views.py > thanks in advance > > -- Ionut G. S

new to django

2010-07-25 Thread ionut cristian cucu
Hi list! I just started on django and so far my project went very well: I've created an admin site that will allow the user some data into a postgres db. Cool me, my first site. Now I want to do the following: make in admin interface a custom widget that will have a charfield or integerfield but al

dashboard question

2010-08-13 Thread ionut cristian cucu
Hello list, I customized my first dashboard like so: http://paste.pocoo.org/show/250028/, but when I added Group, the site gets rendered weird: http://img705.imageshack.us/img705/8148/djangositeadmin12817724.png. Could you please help me find what have I done wrong? Thanks! -- You received this m

Re: dashboard question

2010-08-14 Thread ionut cristian cucu
Sorry wrong list -- 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, send email to django-users+unsubscr...@googlegroups.com. For more options, visi

reverse ForeignKey

2010-09-23 Thread ionut cristian cucu
Hi list, I just came to django, and to web programming for that matter, so my question is from a n0b: I have to models: class Pacient(models.Model): name=models.CharField('name', max_length=123) class Exit(models.Model): pacient=models.ForeignKey(Pacient) How to I get the admin interf

Re: reverse ForeignKey

2010-09-25 Thread ionut cristian cucu
/2618893/how-to-filter-queryset-in-changelist-view-in-django-admin, > looks like a similar (solved) problem. > In short, it's about overriding the queryset() method of ModelAdmin. > > On Thu, Sep 23, 2010 at 11:33 AM, ionut cristian cucu > wrote: >> >> Hi list, >> I

Re: [Announcement] Vim for Python and Django

2010-09-26 Thread ionut cristian cucu
Very helpful, thanks alot! 2010/9/26 Piotr Zalewa : >  Hi Antoni, > > Thanks for that! > > zalun > > On 09/26/10 10:36, Antoni Aloy wrote: >> Hello all! >> >> In this list we have a recurrent thread: "What'ts the best IDE for >> Django and Python development?" trespams-vim is my try to answer this

Re: reverse ForeignKey

2010-09-26 Thread ionut cristian cucu
2010/9/25 Daniel Roseman : > > > On Sep 25, 9:51 am, ionut cristian cucu wrote: >> I've tried to do something like that: >> class Pacienti_manager(models.Manager): >>   def get_visible(self): >>     return(super(Pacienti_manager, >> self).get_que