<s> from django . db import models <EOL> from core . mixins import ObjectUrlMixin <EOL> from core . keyvalue . base_option import DHCPKeyValue , CommonOption <EOL> class Group ( models . Model , ObjectUrlMixin ) : <EOL> id = models . AutoField ( primary_key = True ) <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> def details ( self ) : <EOL> return ( <EOL> ( "<STR_LIT:Name>" , self . name ) , <EOL> ) <EOL> class Meta : <EOL> db_table = "<STR_LIT>" <EOL> unique_together = ( "<STR_LIT:name>" , ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . name ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" . format ( self ) <EOL> @ classmethod <EOL> def get_api_fields ( cls ) : <EOL> return [ '<STR_LIT:name>' ] <EOL> class GroupKeyValue ( DHCPKeyValue , CommonOption ) : <EOL> obj = models . ForeignKey ( Group , related_name = '<STR_LIT>' , null = False ) <EOL> class Meta : <EOL> db_table = "<STR_LIT>" <EOL> unique_together = ( "<STR_LIT:key>" , "<STR_LIT:value>" ) <EOL> def _aa_description ( self ) : <EOL> return </s>
