<s> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> from djangobmf . conf import settings <EOL> from djangobmf . models import BMFModel <EOL> from . serializers import ProjectSerializer <EOL> @ python_2_unicode_compatible <EOL> class BaseProject ( BMFModel ) : <EOL> team = models . ForeignKey ( <EOL> settings . CONTRIB_TEAM , null = True , blank = True , <EOL> on_delete = models . SET_NULL , <EOL> related_name = "<STR_LIT>" , <EOL> ) <EOL> employees = models . ManyToManyField ( <EOL> settings . CONTRIB_EMPLOYEE , blank = True , <EOL> related_name = "<STR_LIT>" , <EOL> ) <EOL> name = models . CharField ( _ ( "<STR_LIT:Name>" ) , max_length = <NUM_LIT:255> , null = False , blank = False , editable = True , ) <EOL> is_active = models . BooleanField ( _ ( "<STR_LIT>" ) , null = False , blank = True , default = True ) <EOL> class Meta : <EOL> verbose_name = _ ( '<STR_LIT>' ) <EOL> verbose_name_plural = _ ( '<STR_LIT>' ) <EOL> ordering = [ '<STR_LIT:name>' ] <EOL> abstract = True <EOL> permissions = ( <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ) <EOL> swappable = "<STR_LIT>" <EOL> def __str__ ( self ) : <EOL> return self . name <EOL> def bmfget_project ( self ) : <EOL> return self <EOL> class AbstractProject ( BaseProject ) : <EOL> """<STR_LIT:U+0020>""" <EOL> notes = models . TextField ( null = False , blank = True , ) <EOL> customer = models . ForeignKey ( <EOL> settings . CONTRIB_CUSTOMER , null = True , blank = True , related_name = "<STR_LIT>" , <EOL> on_delete = models . SET_NULL , <EOL> ) <EOL> def bmfget_customer ( self ) : <EOL> return self . customer <EOL> class Meta ( BaseProject . Meta ) : <EOL> abstract = True <EOL> class BMFMeta : <EOL> search_fields = [ '<STR_LIT:name>' ] <EOL> has_logging = True <EOL> has_comments = True <EOL> has_files = True <EOL> serializer = ProjectSerializer <EOL> class Project ( AbstractProject ) : <EOL> pass </s>
