There is no "label" for the table because the name of the table does
not show up in any generated forms except, as you say, in appadmin.
But appadmin is not quite the same of Django admin. It is designed for
the administrator, not for the users.

Massimo

On Dec 2, 12:48 am, Kostas M <kmo...@hotmail.com> wrote:
> Speaking of table names, I have a question:
>
> In Django models, when defining a table e.g. "Unit", there is the
> ability to adjust the name of the table when it is shown in the admin
> app, using the Meta class as 'verbose_name' for single, and
> 'verbose_name_plural' for plural:
>
> class Unit(models.Model):
>         code=models.CharField(max_length=2, verbose_name=u'κωδικός')
>         title=models.CharField(max_length=100,verbose_name=u'τίτλος')
>         class Meta:
>                 verbose_name = u"μονάδα"
>                 verbose_name_plural = u"μονάδες"
>
> In Web2py, I would do:
>
> db.define_table('unit',
>     Field('code','string',length=2,required=True,label=u'κωδικός'),
>     Field('title','string',length=100, required=True,label=u'τίτλος'),
>     )
>
> but what about the 'label' of the table?
>
> On Dec 1, 2:54 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > when the dal was designed I has singular in mind.
>
>

Reply via email to