src/p4l/models/common.py
author ymh <ymh.work@gmail.com>
Tue, 10 Sep 2013 02:01:31 +0200
changeset 54 9f6e5abc5e74
parent 0 81e7900b06a7
child 126 a345f1a67bf1
permissions -rw-r--r--
add directive for list of objects. add isbns, issns to edit form

from django.db import models

class P4lModel(models.Model):
    class Meta:
        app_label = 'p4l'
        abstract= True

class P4lModelLang(P4lModel):
    lang = models.CharField(max_length=15, blank=True, null=True, db_index=True) #@xml:lang
    class Meta(P4lModel.Meta):
        abstract= True