django choises field

2009-03-18 Thread Psihonavt
hello, have a question, in my model, i have filed, like: cpu_ch =( ("Box","Box import"), ("EOM","EOM import"), ) import_type = models.CharField(_("Import type"), max_length=5, choices=cpu_ch, blank=True) I want to have a third choice in choices cpu_ch, for example, "other

Re: django choises field

2009-03-19 Thread Psihonavt
Briel, I ubderstand what you want to say, i'll try to find another way. thanks --~--~-~--~~~---~--~~ 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.co

GenericRelation in admin interface

2009-03-21 Thread Psihonavt
Good evening, i have three models, for example: class tProduct(models.Model): name = models.CharField(_("Name"), max_length=20, blank=True) category = models.ManyToManyField(tCategory, blank=True, verbose_name=_("Category")) objects = tProductManager() content_type = models.Forei

add 'link' to admin interface of model

2009-04-09 Thread Psihonavt
good evening guys! have a question: in my model i have a field, like guarantee = models.CharField(_("Link to guarantee"), max_length=250, blank=True) to this charfield, on some conditions, i generate some link (f.e. http://myshop.com/guarantee/47/) What i want is: in admin interface of my model, i

Re: add 'link' to admin interface of model

2009-04-15 Thread Psihonavt
gt; > > manualhttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-display > > On Apr 9, 8:31 pm,Psihonavt wrote: > forget to answer, but it works! thnx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl