Re: models: blank, null and oracle

2009-03-05 Thread Evgeniy Ivanov
Sorry, posted it here occasionally: it should be in dev 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-users@googlegroups.com To unsubscribe

models: blank, null and oracle

2009-03-05 Thread Evgeniy Ivanov
Hi! I have such code: "name = models.CharField(max_length=32)". Thus "blank=False and null=False" should be applied. But in DB this attr is nullable, and since oracle stores empty strings as null attribute created wrongly (' "NAME " NVARCHAR2 (32) , '). Should I file a bug?

Using same model in several applications (in admin)

2009-01-25 Thread Evgeniy Ivanov
Hi list, What is correct way of using the same model with different modelAdmin classes in different applications? The reason is that I need to have different change_lists for this model (since different applications are used in different ways). I've tried subclassing (and specified the same

Re: ManyToManyField in both models

2009-01-22 Thread Evgeniy Ivanov (powerfox)
On Jan 22, 1:20 am, Malcolm Tredinnick wrote: > > How is it wrong that when you want a custom form you have to actually > write some code? Django cannot read your mind. It cannot possibly > accommodate every single use-case of every person on the planet out of > the

Re: ManyToManyField in both models

2009-01-21 Thread Evgeniy Ivanov (powerfox)
table name. On Jan 16, 7:26 pm, "Evgeniy Ivanov (powerfox)" <lolkaanti...@gmail.com> wrote: > On Jan 16, 12:47 pm, Malcolm Tredinnick <malc...@pointy-stick.com> > wrote: > > > > > On Fri, 2009-01-16 at 01:33 -0800, Evgeniy Ivanov (powerfox) wrote: > >

Re: ManyToManyField in both models

2009-01-16 Thread Evgeniy Ivanov (powerfox)
On Jan 16, 12:47 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Fri, 2009-01-16 at 01:33 -0800, Evgeniy Ivanov (powerfox) wrote: > > > On Jan 16, 5:16 am, Malcolm Tredinnick <malc...@pointy-stick.com> > > wrote: > > [...] > > > &g

Re: ManyToManyField in both models

2009-01-16 Thread Evgeniy Ivanov (powerfox)
On Jan 16, 5:16 am, Malcolm Tredinnick wrote: > > How can I add m2m to both models without using third model with > > foreign keys (or with it, but without extra ID field)? If to be > > sincere it doesn't make much sense, but everything in Django should be > > perfect

ManyToManyField in both models

2009-01-15 Thread Evgeniy Ivanov (powerfox)
Hi list, I want to have ManyToMany fields in both models to make django generate forms with multiselect for both models. Something like this: class User(models.Model): groups = models.ManyToManyField('Group', related_name='groups') class Group(models.Model): users =