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 <[email protected]> wrote:
> when the dal was designed I has singular in mind.
>

Reply via email to