src/p4l/models/common.py
author ymh <ymh.work@gmail.com>
Fri, 30 Aug 2013 17:58:35 +0200
changeset 13 6296aa12fd71
parent 0 81e7900b06a7
child 126 a345f1a67bf1
permissions -rw-r--r--
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.

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