equal
deleted
inserted
replaced
3 from django.db import models |
3 from django.db import models |
4 from django.contrib import admin |
4 from django.contrib import admin |
5 import uuid |
5 import uuid |
6 import photologue.models |
6 import photologue.models |
7 from django.conf import settings |
7 from django.conf import settings |
8 |
8 from modeltranslation.utils import build_localized_fieldname |
9 def build_localized_fieldname(field_name, lang): |
|
10 return '%s_%s' % (field_name, lang) |
|
11 |
9 |
12 def get_sid(): |
10 def get_sid(): |
13 return unicode(uuid.uuid1()) |
11 return unicode(uuid.uuid1()) |
14 |
12 |
15 class Roi(models.Model): |
13 class Roi(models.Model): |