I'm using 1.1.1
On the development server on my laptop - it doesn't happen, on
production - happen every time.
How can I debug why this happen?

On 8 апр, 20:35, Nuno Maltez <nuno.li...@gmail.com> wrote:
> If I understand correctly, you can't create a User without defining a
> SoldService at the same time?
> Can't reproduce this behaviour. Which version of Django are you using?
>
> Nuno
>
> 2010/4/7 onorua <ono...@gmail.com>:
>
>
>
> > Hello colleagues,
>
> > I have the models.py:
> > class User(models.Model):
> > š šLastName = models.CharField(max_length=50, verbose_name =
> > "æÁÍÉÌÉÑ")
> > š šFirstName = models.CharField(max_length=50, verbose_name = "éÍÑ")
> > š šMidleName = models.CharField(max_length=50, verbose_name =
> > "ïÔÞÅÓÔ×Ï")
>
> > class SoldServices(models.Model):
> > š šstate_choices = (
> > š š š š('ACT', u'áËÔÉ×ÎÏ'),
> > š š š š('PAS', u'ðÁÓÉ×ÎÏ'),
> > š š š š('TRM', u'ïÔËÌÀÞÅÎÏ'),
> > š š š š)
> > š šService = models.ForeignKey('Service', verbose_name = 'õÓÌÕÇÁ')
> > š šUser = models.ForeignKey('User', blank=True, null=True,
> > verbose_name = 'ðÏÌØÚÏ×ÁÔÅÌØ', related_name='SoldService')
> > š šValidFrom = models.DateTimeField(default=datetime.today(),
> > verbose_name = u"áËÔÉ×ÎÙÊ Ó")
> > š šValidTo = models.DateTimeField(verbose_name = u"áËÔÉ×ÎÙÊ ÄÏ")
> > š šState = models.CharField(default='ACT', max_length=3, choices =
> > state_choices , verbose_name="óÏÓÔÏÑÎÉÅ")
>
> > admin.py:
> > class SoldServicesInline(admin.TabularInline):
> > š šmodel = SoldServices
>
> > class UserAdmin(admin.ModelAdmin):
> > š šinlines = [SoldServicesInline]
>
> > When I'm trying to save the User model with Admin interface, it
> > through an error like Service and ValidTo should be set for all non
> > filled feelds in inline form.
> > How can I prevent this behavior? I need possibility to add new inlines
> > (I can't set extra=0), but I don't want to add this every time, and
> > this behavior looks strange to me.
> > When I change to blank=True, null=True, it create blank Sold services
> > as soon as I save the User which is not acceptable also.
>
> > --
> > 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, visit this group 
> > athttp://groups.google.com/group/django-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-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.google.com/group/django-users?hl=en.

Reply via email to