6d7a1175df6ac081e0fbe9a1c9c950a69c512f3f
[auf_references_client.git] / auf_references_client / models.py
1 def get_resource_url_count(self):
2 return u"%scount/" % (self.get_resource_url_list(),)
3 def get_resource_url_detail(self):
4 return u"%s%s/" % (self.get_resource_url_list(), self.pk)
5
6 from django.db import models
7 from django_roa import Model
8 models.Model = Model
9 #setattr (models.Model, 'get_resource_url_count', get_resource_url_count)
10 #setattr (models.Model, 'get_resource_url_detail', get_resource_url_detail)
11
12 from auf_references_modeles import *