# Path: dwitter/main/models.py
# class Member(models.Model):
#     user = models.OneToOneField(User)
#     following = models.ManyToManyField('self', blank=True, symmetrical=False, related_name='followers')
#     nick = models.CharField(_(u'Name'), max_length=50)
#     descr = models.TextField(_(u'Description'),blank=True)
#     image = models.ImageField(_(u'Image'), upload_to=uploadto, default='none.png')
#     language = models.CharField(_(u'Language'), max_length=5, default='en')
# 
#     def __unicode__(self):
#         return self.user.username


from haystack import indexes
from dwitter.main.models import Member
#!/usr/bin/env python
# -*- coding: utf-8 -*-


class MemberIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)
    
    def get_model(self):

# Path: dwitter/main/models.py
# class Member(models.Model):
#     user = models.OneToOneField(User)
#     following = models.ManyToManyField('self', blank=True, symmetrical=False, related_name='followers')
#     nick = models.CharField(_(u'Name'), max_length=50)
#     descr = models.TextField(_(u'Description'),blank=True)
#     image = models.ImageField(_(u'Image'), upload_to=uploadto, default='none.png')
#     language = models.CharField(_(u'Language'), max_length=5, default='en')
# 
#     def __unicode__(self):
#         return self.user.username


# Path: dwitter/main/search_indexes.py
from haystack import indexes
from dwitter.main.models import Member

#!/usr/bin/env python
# -*- coding: utf-8 -*-


class MemberIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)
    
    def get_model(self):

        return Member