<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _

from opps.boxes.models import OPPS_APPS


FIELD_TYPE = (
    ('checkbox', _('CheckBox')),
    ('radio', _('Radio')),
    ('text', _('Text')),
    ('textarea', _('TextArea')),
)


class Field(models.Model):
    name = models.CharField(_('Name'), max_length=100)
    slug = models.SlugField(_('Slug'), max_length=255)
    application = models.CharField(_('Application'),
                                   max_length=255,
                                   choices=OPPS_APPS,
                                   db_index=True)
    type = models.CharField(_("Type"), max_length=15,
                            choices=FIELD_TYPE,
                            db_index=True)

    def __unicode__(self):
        return u"{} - {}".format(self.application, self.name)


class Option(models.Model):
    field = models.ForeignKey('fields.Field')<commit_msg>Remove choices of application field on fields models<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _


FIELD_TYPE = (
    ('checkbox', _('CheckBox')),
    ('radio', _('Radio')),
    ('text', _('Text')),
    ('textarea', _('TextArea')),
)


class Field(models.Model):
    name = models.CharField(_('Name'), max_length=100)
    slug = models.SlugField(_('Slug'), max_length=255)
    application = models.CharField(_('Application'),
                                   max_length=255,
                                   db_index=True)
    type = models.CharField(_("Type"), max_length=15,
                            choices=FIELD_TYPE,
                            db_index=True)

    def __unicode__(self):
        return u"{} - {}".format(self.application, self.name)


class Option(models.Model):
    field = models.ForeignKey('fields.Field')
{'fraction_non_alphanumeric': 0.14715025906735751, 'fraction_numerical': 0.012435233160621761, 'mean_word_length': 2.323580034423408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6097481', 'n_tokens_mistral': 591, 'n_tokens_neox': 560, 'n_words': 109}