src/p4l/models/common.py
author ymh <ymh.work@gmail.com>
Thu, 12 Sep 2013 18:21:05 +0200
changeset 76 6dd1f5246e1c
parent 0 81e7900b06a7
child 126 a345f1a67bf1
permissions -rw-r--r--
Small optimisation

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