__init__() got an unexpected keyword argument 'raw_id_admin'

2009-07-16 Thread onoxo
Hi! i'm having problem with raw_id_admin argument in aplication from the djangoproject tutorial. only difference from orginal app is in the raw_id_admin in Choice model # this is the model.py: from django.db import models class Poll(models.Model): question = models.CharField(max_length=200

Re: __init__() got an unexpected keyword argument 'raw_id_admin'

2009-07-16 Thread onoxo
that's it tnx! On Jul 16, 1:42 pm, Karen Tracey wrote: > On Thu, Jul 16, 2009 at 7:04 AM, onoxo wrote: > > > Hi! > > i'm having problem with raw_id_admin argument in aplication from the > > djangoproject tutorial. only difference from orginal app is in th

raw_id_fields, get atribute name and number, how to?

2009-07-16 Thread onoxo
I'm using raw_id_fields in admin.py the question, how could i get the Poll question atribute and the number in admin? number is ok but it would be better if i could get more info than that... can i create a new class atribute in models.py and refer to Poll class? something like this: tempPoll =

ordering problem

2009-07-16 Thread onoxo
Hi! I'm having a problem with drag'n'drop ordering of model "PhotoSetPhotoItem". I'm using the solution with jQuery and it's working ok (reordering) when i have a models.CharField where i manualy write unique string (without seting it as PK). when i dont have it reorders visualy but when i save th

Re: raw_id_fields, get atribute name and number, how to?

2009-07-17 Thread onoxo
to make it simple, i have this in models.py class Photo(models.Model): title_hr = models.CharField('(hr)', max_length=255) title_en = models.CharField('(en)', max_length=255) img = FileBrowseField(max_length=200, initial_directory="",...) class PhotoSetPhotoItem(models.Model): or

ForeignKey model attribute value in save() method

2009-07-17 Thread onoxo
how can i access ForeignKey model attribute value in save() or __unicode__ method? some hint will help. here is my model.py: class PhotoSetPhotoItem(models.Model): photo_item = models.ForeignKey('Photo', related_name='photoitem') slug = models.SlugField(blank = True, null = True) de

Re: ForeignKey model attribute value in save() method

2009-07-19 Thread onoxo
does someone have a hint on this one? On Jul 17, 5:08 pm, onoxo wrote: > how can i access ForeignKey model attribute value in save() or > __unicode__ method? > some hint will help. > > here is my model.py: > > class PhotoSetPhotoItem(models.Model): >     photo_item =

Re: ForeignKey model attribute value in save() method

2009-07-19 Thread onoxo
19, 4:15 pm, Daniel Roseman wrote: > On Jul 17, 4:08 pm, onoxo wrote: > > > > > > > how can i access ForeignKey model attribute value in save() or > > __unicode__ method? > > some hint will help. > > > here is my model.py: > > > cla

how to access ForeignKey models properties?

2009-08-18 Thread onoxo
this is my model.py: class Event(models.Model): title = models.CharField('Event Name', max_length=300) photo_set = models.ForeignKey(PhotoSet, blank=True, null=True) class PhotoSet(models.Model): title = models.CharField(max_length=300) slug = models.CharField(max_length=300) a

Re: how to access ForeignKey models properties?

2009-08-19 Thread onoxo
someone? i need this today... tnx! On Aug 18, 11:48 pm, onoxo wrote: > this is my model.py: > > class Event(models.Model): >     title = models.CharField('Event Name', max_length=300) >     photo_set = models.ForeignKey(PhotoSet, blank=True, null=True) > &

edit fieldset.html template

2009-10-21 Thread onoxo
hi! i have a model and I'm using it as inline in admin site. here is the code: models.py class PhotoItem(models.Model): order = models.IntegerField(blank = True, null = True) itemset = models.ForeignKey('PhotoSet', related_name='photoset') item = models.ForeignKey('Photo', related_na

Re: edit fieldset.html template

2009-10-22 Thread onoxo
is there some kind of manual/procedure to use objects in template pages? On Oct 21, 10:40 pm, onoxo wrote: > hi! > i have a model and I'm using it as inline in admin site. here is the > code: > > models.py > > class PhotoItem(models.Model): >     order = models.In

Re: edit fieldset.html template

2009-10-22 Thread onoxo
some hint? On Oct 22, 12:28 pm, onoxo wrote: > is there some kind of manual/procedure to use objects in template > pages? > > On Oct 21, 10:40 pm, onoxo wrote: > > > > > hi! > > i have a model and I'm using it as inline in admin site. here is the > >

Cannot assign None, does not allow null values

2009-11-27 Thread onoxo
i get this error when i try to create new item in admin site. here is my models.py import datetime from django.db import models from tinymce import models as tinymce_models from filebrowser.fields import FileBrowseField class ItemWithMedia(models.Model): created = models.DateTimeField(auto_no

Re: Cannot assign None, does not allow null values

2009-11-27 Thread onoxo
: Cannot assign None: "Actual.published" does not allow null values. On Nov 27, 10:57 pm, onoxo wrote: > i get this error when i try to create new item in admin site. > > here is my models.py > import datetime > from django.db import models > from tinymce import mod

Re: Cannot assign None, does not allow null values

2009-11-28 Thread onoxo
ing this in > the definition: > >     class ItemWithMedia(models.Model): >         # ... all of your old stuff goes here >         class Meta: >             abstract = True > > That way Django knows it's just a base class. > > Not sure what the problem is, y

send_mass_mail()

2010-03-10 Thread onoxo
how much mails can i send with send_mass_mail() i have like 7000 users and i have send mail to all of them. thanks, vedran -- 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 un

Re: send_mass_mail()

2010-03-10 Thread onoxo
thanks! i'm talking with people from webfaction about smtp limit, i'll post result... On Mar 10, 9:04 pm, Jirka Vejrazka wrote: > > how much mails can i send with send_mass_mail() > > i have like 7000 users and i have send mail to all of them. > > Hi, > >   I have never used it myself, but a qui

Re: send_mass_mail()

2010-03-10 Thread onoxo
hi! I know about Mailman but i have to send unique mail to each user, kind of confirmation with system generated url. On Mar 11, 12:16 am, CLIFFORD ILKAY wrote: > On 03/10/2010 02:19 PM, onoxo wrote: > > > how much mails can i send with send_mass_mail() > > i have like 700

Re: send_mass_mail()

2010-03-10 Thread onoxo
@CLIFFORD ILKAY how did you handle so much mails? On Mar 11, 12:22 am, onoxo wrote: > hi! > > I know about Mailman but i have to send unique mail to each user, kind > of confirmation with system generated url. > > On Mar 11, 12:16 am, CLIFFORD ILKAY > wrote: > > &