Create Metaclass to translate Model fields

Ghost User
2016-08-06T17:16:08+02:00

Closes #35

Dit ondersteunt nu dingen als:

```
from django.db import models
from utils.translation import MultilingualField, ModelTranslateMeta

class MerchandiseItem(models.Model, metaclass=ModelTranslateMeta):

descri...

Closes #35 (closed)

Dit ondersteunt nu dingen als:

from django.db import models
from utils.translation import MultilingualField, ModelTranslateMeta


class MerchandiseItem(models.Model, metaclass=ModelTranslateMeta):

    description = MultilingualField(models.TextField, default='', verbose_name='Some elaborate text')

In je templates kan je gewoon transparant bijv. merchandise_item.description blijven gebruiken.