Template error In template /home/sector119/devel/eps_src/eps/templates/base.html, error at line 23 Caught an exception while rendering: maximum recursion depth exceeded in cmp
23 <b>{{ user.office.location.get_type_display }}. 24 {{ user.office.location.name }}, 25 {{ user.office.name }}, ---------------------- class Location(models.Model): id = models.IntegerField(_('Id'), primary_key=True) parent = models.ForeignKey('self', verbose_name=_('Location parent id:'), null=True, blank=True, related_name='child_set') name = models.CharField(_('Location'), help_text=_('Office or person location.'), max_length=32) type = models.PositiveSmallIntegerField(_('Location type'), choices=LOCATION_TYPE_CHOICES) def __unicode__(self): return self.name class Import: pass class Meta: verbose_name = _('Location') verbose_name_plural = _('Locations') ordering = ['parent', 'id'] class Admin: pass ---------------------- class OrganizationOffice(models.Model): parent = models.ForeignKey('self', verbose_name=_('Parent office:'), null=True, blank=True) location = models.ForeignKey(Location, verbose_name=_('Location:')) name = models.CharField(_('Office'), max_length=50) bank = models.CharField(_('Bank'), max_length=50, null=True, blank=True) account = fields.PositiveBigIntegerField(_('Account'), null=True, blank=True) bic = models.PositiveIntegerField(_('BIC'), help_text=_('Bank identifier code.'), null=True, blank=True) code = models.PositiveIntegerField(_('Code'), help_text=_('Enterprise code.'), null=True, blank=True) in_testmode = models.BooleanField(_('Office is in test mode'), default=False) day_is_open = models.BooleanField(_('Transaction day is open'), default=False) def __unicode__(self): return self.name class Import: pass class Meta: verbose_name = _('Office') verbose_name_plural = _('Offices') ordering = ['location', 'parent', 'id'] class Admin: search_fields = ('^id', '^location__name', 'name') --~--~---------~--~----~------------~-------~--~----~ 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---