# 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 django.forms import ModelForm
from django import forms
from django.forms import widgets
from django.utils.translation import ugettext_lazy as _
from dwitter.main.models import Member
# -*- coding: utf-8 -*- 


class MemberForm(ModelForm):
    image = forms.ImageField(label=u'Εικόνα', required=False)
    class Meta:
        model = Member
        exclude = ('user','following')

# 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/forms.py
from django.forms import ModelForm
from django import forms
from django.forms import widgets
from django.utils.translation import ugettext_lazy as _
from dwitter.main.models import Member

# -*- coding: utf-8 -*- 


class MemberForm(ModelForm):
    image = forms.ImageField(label=u'Εικόνα', required=False)
    class Meta:
        model = Member
        exclude = ('user','following')

        widgets = {'descr':widgets.Textarea(attrs={'rows':'3','class':'input-xlarge'})}