class Menu(models.Model): id_piatto = models.AutoField(max_length=11, primary_key=True) nome_piatto = models.Field(max_length=50) categoria = models.Field(max_length=15) prezzo = models.DecimalField(default=0) stato = models.Field(max_length=11, default=1) ins_ts = models.DateTimeField(auto_now=True) upd_user = models.Field(blank=False) upd_ts = models.DateTimeField(auto_now=True) class Meta: db_table = 'menu' app_label = 'ristorante' def to_css(self): self.btn = 'success' if self.stato == 'valido' else 'danger' @staticmethod def get(id_piatto): return Menu.objects.get(id_piatto=id_piatto) @staticmethod def get_lista(ordinabili=False): ret = None if ordinabili: ret = Menu.objects.filter(stato__in=('valido', 'terminato')) return ret
class Migration(migrations.Migration): dependencies = [ ('service20', '0028_auto_20190217_2118'), ] operations = [ migrations.AlterModelOptions( name='ms_mrk', options={}, ), migrations.AddField( model_name='ms_mrk', name='item_cd', field=models.Field(blank=True, null=True, verbose_name='채점항목코드-SEQ별'), ), migrations.AddField( model_name='ms_mrk', name='item_nm', field=models.Field(blank=True, null=True, verbose_name='채점항목명'), ), migrations.AlterUniqueTogether( name='ms_mrk', unique_together=set(), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ips', models.Field(default={})), ('order_list', models.Field(default={})), ('bitcoin', models.PositiveIntegerField()), ('balance', models.DecimalField(decimal_places=2, default=0, max_digits=10)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('published_date', models.DateTimeField(blank=True, null=True)), ('quantity', models.PositiveIntegerField(default=0)), ('price', models.DecimalField(decimal_places=2, default=0, max_digits=10)), ('status', models.CharField(choices=[('SA', 'SALE'), ('PU', 'PURCHASE'), ('CL', 'CLOSE'), ('ST', 'STAND-BY')], default='ST', max_length=2)), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ex.Profile')), ], ), ]
class ListaNozze(models.Model): id_articolo = models.AutoField(max_length=11, primary_key=True) nome = models.Field(name='nome', blank=True) descrizione = models.Field(name='descrizione', blank=True) link = models.Field(name='link', blank=True) immagine = models.Field(name='immagine', blank=True) stato = models.Field(name='stato', blank=True) ins_ts = models.DateTimeField(name='ins_ts', auto_now=True) class Meta: db_table = 'lista_nozze' app_label = 'matrimonio' def to_html(self): self.pulsante_html = '' if self.stato == 'completato': self.pulsante_html = """<button class="btn btn-danger btn-round"><i class="fab fa-paypal"></i> Completato</button>""".format( **self.__dict__) elif self.stato == 'valido': self.pulsante_html = """<a href='{link}'><button class="btn btn-primary btn-round"><i class="fab fa-paypal"></i> Partecipa tramite Paypall</button></a>""".format( **self.__dict__) else: self.pulsante_html = """<button class="btn btn-danger btn-warning-filled"><i class="fab fa-paypal"></i> {stato}</button>""".format( **self.__dict__) return self.__dict__
class Search(models.Model): """Model that handle the search.""" _dbname = 'transient' rowid = models.IntegerField(primary_key=True) model = models.CharField(max_length=64) model_id = models.IntegerField() public = models.BooleanField(default=True) text = SearchField() lang = models.Field() kind = models.Field() tags = SearchTagField() source = models.Field() objects = SearchQuerySet.as_manager() class Meta: db_table = 'idx' managed = False @classmethod def ids(cls, **kwargs): qs = Search.objects.filter(**kwargs).order_by_relevancy() return qs.values_list('model_id', flat=True) @classmethod def search(cls, **kwargs): qs = Search.objects.filter(**kwargs).order_by_relevancy() for row in qs: yield SEARCHABLE[row.model].objects.get(pk=row.model_id)
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('ips', models.Field(default=[])), ('subprofiles', models.Field(default={})), ('wallet', models.FloatField(default=0)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('service20', '0032_delete_ms_mrk'), ] operations = [ migrations.CreateModel( name='ms_mrk', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ms_id', models.CharField(max_length=10, verbose_name='멘토스쿨ID')), ('test_div', models.CharField(max_length=10, verbose_name='전형구분(서류/면접)')), ('apl_no', models.CharField(max_length=10, verbose_name='지원 NO')), ('mrk_seq', models.PositiveIntegerField(verbose_name='채점 항목 SEQ(NO)')), ('mrk_no', models.PositiveIntegerField(verbose_name='채점자 NO')), ('mrk_id', models.CharField(max_length=10, verbose_name='채점자 ID')), ('mak_nm', models.CharField(max_length=20, verbose_name='채점자 명')), ('score', models.PositiveIntegerField(blank=True, null=True, verbose_name='점수')), ('item_cd', models.Field(blank=True, null=True, verbose_name='채점항목코드-SEQ별')), ('item_nm', models.Field(blank=True, null=True, verbose_name='채점항목명')), ('ins_id', models.CharField(blank=True, max_length=10, null=True, verbose_name='입력자ID')), ('ins_ip', models.CharField(blank=True, max_length=20, null=True, verbose_name='입력자IP')), ('ins_dt', models.DateTimeField(blank=True, null=True, verbose_name='입력일시')), ('ins_pgm', models.CharField(blank=True, max_length=20, null=True, verbose_name='입력프로그램ID')), ('upd_id', models.CharField(blank=True, max_length=10, null=True, verbose_name='수정자ID')), ('upd_ip', models.CharField(blank=True, max_length=20, null=True, verbose_name='수정자IP')), ('upd_dt', models.DateTimeField(blank=True, null=True, verbose_name='수정일시')), ('upd_pgm', models.CharField(blank=True, max_length=20, null=True, verbose_name='수정프로그램ID')), ], ), migrations.DeleteModel( name='mp_mrk', ), ]
class Migration(migrations.Migration): dependencies = [ ('jdPrice', '0005_delete_addressinfo'), ] operations = [ migrations.CreateModel( name='UserInfo', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('user_name', models.CharField(max_length=20)), ('passwd', models.CharField(max_length=100)), ('passwd_encode', models.Field()), ('email', models.Field(blank=True, null=True)), ('create_time', models.DateTimeField()), ('update_time', models.DateTimeField()), ('status', models.IntegerField(blank=True, null=True)), ], options={ 'verbose_name': 'Django用户账号信息', 'verbose_name_plural': 'Django用户账号信息', 'db_table': 'users_info', 'managed': False, }, ), ]
class Commento(models.Model): id_commento = models.AutoField(max_length=11, primary_key=True) utente_commento = models.Field(name='utente_commento', blank=True) famiglia = models.Field(name='famiglia', blank=True) descrizione = models.Field(name='descrizione', blank=True) ins_ts = models.DateTimeField(name='ins_ts', auto_now=True) class Meta: db_table = 'commenti' app_label = 'matrimonio' @staticmethod def get_commenti_per_html(): commenti = [] for i in Commento.objects.filter(): info_ospite = Ospite.objects.filter(nome=i.utente_commento, utente=i.famiglia) if info_ospite: i.info_ospite = info_ospite[0].__dict__ else: i.info_ospite = {} info_famiglia = Famiglia.objects.filter(hash=i.famiglia) if info_famiglia: i.info_famiglia = info_famiglia[0].__dict__ else: i.info_famiglia = {} commenti.append(i.__dict__) return commenti
class Comanda(models.Model): id_comanda = models.AutoField(max_length=11, primary_key=True) id_tavolo = models.IntegerField(max_length=11) id_piatto = models.IntegerField(max_length=11) portata = models.Field(max_length=11, default=1) stato = models.Field(max_length=11, default='inserito') ins_ts = models.DateTimeField(auto_now=True) upd_ts = models.DateTimeField(auto_now=True) upd_user = models.Field(max_length=11) class Meta: db_table = 'comande' app_label = 'ristorante' @staticmethod def get_comande_tavolo(id_tavolo): lista_comande = Comanda.objects.filter( id_tavolo=id_tavolo).order_by('portata') count = 0 for com in lista_comande: com.piatto = Menu.get(com.id_piatto) count += 1 com.count = count return lista_comande
class Document(models.Model): docfile = models.FileField(upload_to='') filename = models.Field() uploadedby = models.Field() lastuploadtime = models.DateTimeField() def __str__(self): return self.filename
class TimeStampModel(models.Model): class Meta: abstract =True created = models.Field(models.DateTimeField,default=datetime.now(),blank=False,null=False) last_update =models.Field(models.DateTimeField,default=datetime.now(),blank=False,null=False) def save(self): self.date_modified = datetime.now() super(TimeStampModel, self).save()
class Migration(migrations.Migration): initial = True dependencies = [ ('courtier', '0001_initial'), ('client', '__first__'), ] operations = [ migrations.CreateModel( name='ClientProduct', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('state', models.Field()), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='client.Client')), ], ), migrations.CreateModel( name='Contract', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='CourtierProduct', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('commission', models.Field()), ('is_enabled', models.BooleanField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('courtier', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courtier.Courtier')), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('contract', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contract.Contract')), ], ), migrations.AddField( model_name='courtierproduct', name='product', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contract.Product'), ), migrations.AddField( model_name='clientproduct', name='product', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contract.Contract'), ), ]
class Profile(models.Model): _id = ObjectIdField() user = models.ForeignKey(User, on_delete=models.CASCADE) # registra gli indirizzi ip dell'utente ips = models.Field(default=[]) # regostra l'email degli utenti che possono compiere operazioni per te<---APPROFONDISCI subprofiles = models.Field(default={}) # ogni volta che accede si aggiorna la data timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
def test_field_ordering(self): """Fields are ordered based on their creation.""" f1 = models.Field() f2 = models.Field(auto_created=True) f3 = models.Field() self.assertLess(f2, f1) self.assertGreater(f3, f1) self.assertIsNotNone(f1) self.assertNotIn(f2, (None, 1, ''))
class Tavolo(models.Model): id_tavolo = models.AutoField(max_length=11, primary_key=True) nome = models.Field(name='nome', blank=True) bottiglia = models.Field(name='bottiglia', blank=True) note = models.Field(name='note', blank=True) ins_ts = models.DateTimeField(name='ins_ts', auto_now=True) class Meta: db_table = 'tavoli' app_label = 'matrimonio'
class Profile(models.Model): _id = ObjectIdField() user = models.ForeignKey(User, on_delete=models.CASCADE) ips = models.Field(default=[]) subprofiles = models.Field(default={}) wallet = models.Field(choices=[(x, x) for x in range(1, 11)], default=0) profit = models.FloatField(default=0) def __str__(self): return f"{self.user}({self._id})"
class Ospite(models.Model): choices = [ ('S', 'on'), ('N', 'off'), ] id_ospite = models.AutoField(max_length=11, primary_key=True) nome = models.Field(name='nome', blank=True) speciale = models.CharField(max_length=10, choices=choices, default='') covid = models.CharField(max_length=1, choices=choices, default='N') mail = models.CharField(max_length=100, blank=True) mail_valida = models.CharField(max_length=100, blank=True, default='N') mail_covid = models.CharField(max_length=1, blank=True, default='N') flag_stampato_segnaposto = models.CharField(max_length=1, blank=True, default='N') sesso = models.CharField(default='Uomo') note = models.Field(blank=True) url_img_user = models.Field(blank=True, default='assets/img/mockup.png') menu = models.Field(blank=True, default='adulto') utente = models.Field(blank=True) tavolo = models.ForeignKey(Tavolo, on_delete=models.CASCADE, default='1') upd_ts = models.DateTimeField(name='upd_ts', auto_now=True) class Meta: db_table = 'ospiti' app_label = 'matrimonio' def toHtml(self, famigliaObj=None): self.covid_html = 'si' if self.covid == 'S' else 'no' check_fields = ['covid'] for item in check_fields: value = self.__getattribute__(item) self.__setattr__(item, '' if value == 'N' else 'checked') self.select_bambino = '' self.select_adulto = '' self.select_senza_glutine = '' self.select_senza_lattosio = '' self.__setattr__('select_%s' % self.menu, 'selected') self.select_Uomo = '' self.select_Donna = '' self.__setattr__('select_%s' % self.sesso, 'selected') self.mostra_albergo = '' if famigliaObj and famigliaObj.albergo_abilitato != 'S': self.mostra_albergo = 'nascosta' self.nome_tavolo = self.tavolo.nome return self.__dict__
class Secret(TimeStampModel): AuthoringUser = models.Field(models.ForeignKey(User),null=False,db_index=True) Content = models.Field(models.TextField()) NumberOfReplys = models.Field(models.IntegerField,default=1,null=False,db_index=True) ReplysTo = models.ForeignKey('self') Conversation = models.ForeignKey(Conversation) @staticmethod def CreateSecret(AutheringUser,Content,ReplyTo=None): S =Secret() S.AuthoringUser = AutheringUser S.Content =Content S.ReplysTo=ReplyTo S.save() return S
class Conversation(models.Model): Initiator =models.Field(models.ForeignKey(User),null=False,db_index=True) Replyer = models.Field(models.ForeignKey(User),null=True,db_index=True) InitialMessage = models.ForeignKey(Secret,db_index=True,null=False) LatestMessage = models.ForeignKey(Secret,db_index=True,null=False) @staticmethod def InitateConversation(Initiator,InitalText): C = Conversation() C.Initiator=Initiator C.InitialMessage =Secret.CreateSecret(Initiator,InitalText) C.LatestMessage=C.InitialMessage C.save() return C
class Migration(migrations.Migration): dependencies = [ ('home', '0011_delete_feedback'), ] operations = [ migrations.CreateModel( name='Feedback', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=50)), ('last_name', models.CharField(max_length=50)), ('feedbackemail', models.CharField(max_length=50)), ('subject', models.CharField(max_length=100)), ('feedback', models.Field()), ('date_add', models.DateField()), ], options={ 'db_table': 'feedback', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='User', fields=[ ('created', models.DateTimeField(auto_now_add=True)), ('username', models.CharField(blank=True, default='', max_length=100)), ('id', models.IntegerField(blank=True, null=True)), ('snippets', models.Field(primary_key=True, serialize=False)), ], ), migrations.CreateModel( name='Snippet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('title', models.CharField(blank=True, default='', max_length=100)), ('code', models.TextField()), ('linenos', models.BooleanField(default=False)), ('language', models.CharField(choices=[('abap', 'ABAP'), ('abnf', 'ABNF'), ('ada', 'Ada'), ('adl', 'ADL'), ('agda', 'Agda'), ('aheui', 'Aheui'), ('ahk', 'autohotkey'), ('alloy', 'Alloy'), ('ampl', 'Ampl'), ('antlr', 'ANTLR'), ('antlr-as', 'ANTLR With ActionScript Target'), ('antlr-cpp', 'ANTLR With CPP Target'), ('antlr-csharp', 'ANTLR With C# Target'), ('antlr-java', 'ANTLR With Java Target'), ('antlr-objc', 'ANTLR With ObjectiveC Target'), ('antlr-perl', 'ANTLR With Perl Target'), ('antlr-python', 'ANTLR With Python Target'), ('antlr-ruby', 'ANTLR With Ruby Target'), ('apacheconf', 'ApacheConf'), ('apl', 'APL'), ('applescript', 'AppleScript'), ('arduino', 'Arduino'), ('arrow', 'Arrow'), ('as', 'ActionScript'), ('as3', 'ActionScript 3'), ('aspectj', 'AspectJ'), ('aspx-cs', 'aspx-cs'), ('aspx-vb', 'aspx-vb'), ('asy', 'Asymptote'), ('at', 'AmbientTalk'), ('augeas', 'Augeas'), ('autoit', 'AutoIt'), ('awk', 'Awk'), ('bare', 'BARE'), ('basemake', 'Base Makefile'), ('bash', 'Bash'), ('bat', 'Batchfile'), ('bbcbasic', 'BBC Basic'), ('bbcode', 'BBCode'), ('bc', 'BC'), ('befunge', 'Befunge'), ('bib', 'BibTeX'), ('blitzbasic', 'BlitzBasic'), ('blitzmax', 'BlitzMax'), ('bnf', 'BNF'), ('boa', 'Boa'), ('boo', 'Boo'), ('boogie', 'Boogie'), ('brainfuck', 'Brainfuck'), ('bst', 'BST'), ('bugs', 'BUGS'), ('c', 'C'), ('c-objdump', 'c-objdump'), ('ca65', 'ca65 assembler'), ('cadl', 'cADL'), ('camkes', 'CAmkES'), ('capdl', 'CapDL'), ('capnp', "Cap'n Proto"), ('cbmbas', 'CBM BASIC V2'), ('ceylon', 'Ceylon'), ('cfc', 'Coldfusion CFC'), ('cfengine3', 'CFEngine3'), ('cfm', 'Coldfusion HTML'), ('cfs', 'cfstatement'), ('chai', 'ChaiScript'), ('chapel', 'Chapel'), ('charmci', 'Charmci'), ('cheetah', 'Cheetah'), ('cirru', 'Cirru'), ('clay', 'Clay'), ('clean', 'Clean'), ('clojure', 'Clojure'), ('clojurescript', 'ClojureScript'), ('cmake', 'CMake'), ('cobol', 'COBOL'), ('cobolfree', 'COBOLFree'), ('coffee-script', 'CoffeeScript'), ('common-lisp', 'Common Lisp'), ('componentpascal', 'Component Pascal'), ('console', 'Bash Session'), ('control', 'Debian Control file'), ('coq', 'Coq'), ('cpp', 'C++'), ('cpp-objdump', 'cpp-objdump'), ('cpsa', 'CPSA'), ('cr', 'Crystal'), ('crmsh', 'Crmsh'), ('croc', 'Croc'), ('cryptol', 'Cryptol'), ('csharp', 'C#'), ('csound', 'Csound Orchestra'), ('csound-document', 'Csound Document'), ('csound-score', 'Csound Score'), ('css', 'CSS'), ('css+django', 'CSS+Django/Jinja'), ('css+erb', 'CSS+Ruby'), ('css+genshitext', 'CSS+Genshi Text'), ('css+lasso', 'CSS+Lasso'), ('css+mako', 'CSS+Mako'), ('css+mozpreproc', 'CSS+mozpreproc'), ('css+myghty', 'CSS+Myghty'), ('css+php', 'CSS+PHP'), ('css+smarty', 'CSS+Smarty'), ('cucumber', 'Gherkin'), ('cuda', 'CUDA'), ('cypher', 'Cypher'), ('cython', 'Cython'), ('d', 'D'), ('d-objdump', 'd-objdump'), ('dart', 'Dart'), ('dasm16', 'DASM16'), ('delphi', 'Delphi'), ('devicetree', 'Devicetree'), ('dg', 'dg'), ('diff', 'Diff'), ('django', 'Django/Jinja'), ('docker', 'Docker'), ('doscon', 'MSDOS Session'), ('dpatch', 'Darcs Patch'), ('dtd', 'DTD'), ('duel', 'Duel'), ('dylan', 'Dylan'), ('dylan-console', 'Dylan session'), ('dylan-lid', 'DylanLID'), ('earl-grey', 'Earl Grey'), ('easytrieve', 'Easytrieve'), ('ebnf', 'EBNF'), ('ec', 'eC'), ('ecl', 'ECL'), ('eiffel', 'Eiffel'), ('elixir', 'Elixir'), ('elm', 'Elm'), ('emacs', 'EmacsLisp'), ('email', 'E-mail'), ('erb', 'ERB'), ('erl', 'Erlang erl session'), ('erlang', 'Erlang'), ('evoque', 'Evoque'), ('execline', 'execline'), ('extempore', 'xtlang'), ('ezhil', 'Ezhil'), ('factor', 'Factor'), ('fan', 'Fantom'), ('fancy', 'Fancy'), ('felix', 'Felix'), ('fennel', 'Fennel'), ('fish', 'Fish'), ('flatline', 'Flatline'), ('floscript', 'FloScript'), ('forth', 'Forth'), ('fortran', 'Fortran'), ('fortranfixed', 'FortranFixed'), ('foxpro', 'FoxPro'), ('freefem', 'Freefem'), ('fsharp', 'F#'), ('fstar', 'FStar'), ('gap', 'GAP'), ('gas', 'GAS'), ('gdscript', 'GDScript'), ('genshi', 'Genshi'), ('genshitext', 'Genshi Text'), ('glsl', 'GLSL'), ('gnuplot', 'Gnuplot'), ('go', 'Go'), ('golo', 'Golo'), ('gooddata-cl', 'GoodData-CL'), ('gosu', 'Gosu'), ('groff', 'Groff'), ('groovy', 'Groovy'), ('gst', 'Gosu Template'), ('haml', 'Haml'), ('handlebars', 'Handlebars'), ('haskell', 'Haskell'), ('haxeml', 'Hxml'), ('hexdump', 'Hexdump'), ('hlsl', 'HLSL'), ('hsail', 'HSAIL'), ('hspec', 'Hspec'), ('html', 'HTML'), ('html+cheetah', 'HTML+Cheetah'), ('html+django', 'HTML+Django/Jinja'), ('html+evoque', 'HTML+Evoque'), ('html+genshi', 'HTML+Genshi'), ('html+handlebars', 'HTML+Handlebars'), ('html+lasso', 'HTML+Lasso'), ('html+mako', 'HTML+Mako'), ('html+myghty', 'HTML+Myghty'), ('html+ng2', 'HTML + Angular2'), ('html+php', 'HTML+PHP'), ('html+smarty', 'HTML+Smarty'), ('html+twig', 'HTML+Twig'), ('html+velocity', 'HTML+Velocity'), ('http', 'HTTP'), ('hx', 'Haxe'), ('hybris', 'Hybris'), ('hylang', 'Hy'), ('i6t', 'Inform 6 template'), ('icon', 'Icon'), ('idl', 'IDL'), ('idris', 'Idris'), ('iex', 'Elixir iex session'), ('igor', 'Igor'), ('inform6', 'Inform 6'), ('inform7', 'Inform 7'), ('ini', 'INI'), ('io', 'Io'), ('ioke', 'Ioke'), ('irc', 'IRC logs'), ('isabelle', 'Isabelle'), ('j', 'J'), ('jags', 'JAGS'), ('jasmin', 'Jasmin'), ('java', 'Java'), ('javascript+mozpreproc', 'Javascript+mozpreproc'), ('jcl', 'JCL'), ('jlcon', 'Julia console'), ('js', 'JavaScript'), ('js+cheetah', 'JavaScript+Cheetah'), ('js+django', 'JavaScript+Django/Jinja'), ('js+erb', 'JavaScript+Ruby'), ('js+genshitext', 'JavaScript+Genshi Text'), ('js+lasso', 'JavaScript+Lasso'), ('js+mako', 'JavaScript+Mako'), ('js+myghty', 'JavaScript+Myghty'), ('js+php', 'JavaScript+PHP'), ('js+smarty', 'JavaScript+Smarty'), ('jsgf', 'JSGF'), ('json', 'JSON'), ('jsonld', 'JSON-LD'), ('jsp', 'Java Server Page'), ('julia', 'Julia'), ('juttle', 'Juttle'), ('kal', 'Kal'), ('kconfig', 'Kconfig'), ('kmsg', 'Kernel log'), ('koka', 'Koka'), ('kotlin', 'Kotlin'), ('lagda', 'Literate Agda'), ('lasso', 'Lasso'), ('lcry', 'Literate Cryptol'), ('lean', 'Lean'), ('less', 'LessCss'), ('lhs', 'Literate Haskell'), ('lidr', 'Literate Idris'), ('lighty', 'Lighttpd configuration file'), ('limbo', 'Limbo'), ('liquid', 'liquid'), ('live-script', 'LiveScript'), ('llvm', 'LLVM'), ('llvm-mir', 'LLVM-MIR'), ('llvm-mir-body', 'LLVM-MIR Body'), ('logos', 'Logos'), ('logtalk', 'Logtalk'), ('lsl', 'LSL'), ('lua', 'Lua'), ('make', 'Makefile'), ('mako', 'Mako'), ('maql', 'MAQL'), ('mask', 'Mask'), ('mason', 'Mason'), ('mathematica', 'Mathematica'), ('matlab', 'Matlab'), ('matlabsession', 'Matlab session'), ('md', 'markdown'), ('mime', 'MIME'), ('minid', 'MiniD'), ('modelica', 'Modelica'), ('modula2', 'Modula-2'), ('monkey', 'Monkey'), ('monte', 'Monte'), ('moocode', 'MOOCode'), ('moon', 'MoonScript'), ('mosel', 'Mosel'), ('mozhashpreproc', 'mozhashpreproc'), ('mozpercentpreproc', 'mozpercentpreproc'), ('mql', 'MQL'), ('ms', 'MiniScript'), ('mscgen', 'Mscgen'), ('mupad', 'MuPAD'), ('mxml', 'MXML'), ('myghty', 'Myghty'), ('mysql', 'MySQL'), ('nasm', 'NASM'), ('ncl', 'NCL'), ('nemerle', 'Nemerle'), ('nesc', 'nesC'), ('newlisp', 'NewLisp'), ('newspeak', 'Newspeak'), ('ng2', 'Angular2'), ('nginx', 'Nginx configuration file'), ('nim', 'Nimrod'), ('nit', 'Nit'), ('nixos', 'Nix'), ('notmuch', 'Notmuch'), ('nsis', 'NSIS'), ('numpy', 'NumPy'), ('nusmv', 'NuSMV'), ('objdump', 'objdump'), ('objdump-nasm', 'objdump-nasm'), ('objective-c', 'Objective-C'), ('objective-c++', 'Objective-C++'), ('objective-j', 'Objective-J'), ('ocaml', 'OCaml'), ('octave', 'Octave'), ('odin', 'ODIN'), ('ooc', 'Ooc'), ('opa', 'Opa'), ('openedge', 'OpenEdge ABL'), ('pacmanconf', 'PacmanConf'), ('pan', 'Pan'), ('parasail', 'ParaSail'), ('pawn', 'Pawn'), ('peg', 'PEG'), ('perl', 'Perl'), ('perl6', 'Perl6'), ('php', 'PHP'), ('pig', 'Pig'), ('pike', 'Pike'), ('pkgconfig', 'PkgConfig'), ('plpgsql', 'PL/pgSQL'), ('pointless', 'Pointless'), ('pony', 'Pony'), ('postgresql', 'PostgreSQL SQL dialect'), ('postscript', 'PostScript'), ('pot', 'Gettext Catalog'), ('pov', 'POVRay'), ('powershell', 'PowerShell'), ('praat', 'Praat'), ('prolog', 'Prolog'), ('promql', 'PromQL'), ('properties', 'Properties'), ('protobuf', 'Protocol Buffer'), ('ps1con', 'PowerShell Session'), ('psql', 'PostgreSQL console (psql)'), ('psysh', 'PsySH console session for PHP'), ('pug', 'Pug'), ('puppet', 'Puppet'), ('py2tb', 'Python 2.x Traceback'), ('pycon', 'Python console session'), ('pypylog', 'PyPy Log'), ('pytb', 'Python Traceback'), ('python', 'Python'), ('python2', 'Python 2.x'), ('qbasic', 'QBasic'), ('qml', 'QML'), ('qvto', 'QVTO'), ('racket', 'Racket'), ('ragel', 'Ragel'), ('ragel-c', 'Ragel in C Host'), ('ragel-cpp', 'Ragel in CPP Host'), ('ragel-d', 'Ragel in D Host'), ('ragel-em', 'Embedded Ragel'), ('ragel-java', 'Ragel in Java Host'), ('ragel-objc', 'Ragel in Objective C Host'), ('ragel-ruby', 'Ragel in Ruby Host'), ('raw', 'Raw token data'), ('rb', 'Ruby'), ('rbcon', 'Ruby irb session'), ('rconsole', 'RConsole'), ('rd', 'Rd'), ('reason', 'ReasonML'), ('rebol', 'REBOL'), ('red', 'Red'), ('redcode', 'Redcode'), ('registry', 'reg'), ('resource', 'ResourceBundle'), ('rexx', 'Rexx'), ('rhtml', 'RHTML'), ('ride', 'Ride'), ('rnc', 'Relax-NG Compact'), ('roboconf-graph', 'Roboconf Graph'), ('roboconf-instances', 'Roboconf Instances'), ('robotframework', 'RobotFramework'), ('rql', 'RQL'), ('rsl', 'RSL'), ('rst', 'reStructuredText'), ('rts', 'TrafficScript'), ('rust', 'Rust'), ('sarl', 'SARL'), ('sas', 'SAS'), ('sass', 'Sass'), ('sc', 'SuperCollider'), ('scala', 'Scala'), ('scaml', 'Scaml'), ('scdoc', 'scdoc'), ('scheme', 'Scheme'), ('scilab', 'Scilab'), ('scss', 'SCSS'), ('sgf', 'SmartGameFormat'), ('shen', 'Shen'), ('shexc', 'ShExC'), ('sieve', 'Sieve'), ('silver', 'Silver'), ('singularity', 'Singularity'), ('slash', 'Slash'), ('slim', 'Slim'), ('slurm', 'Slurm'), ('smali', 'Smali'), ('smalltalk', 'Smalltalk'), ('smarty', 'Smarty'), ('sml', 'Standard ML'), ('snobol', 'Snobol'), ('snowball', 'Snowball'), ('solidity', 'Solidity'), ('sourceslist', 'Debian Sourcelist'), ('sp', 'SourcePawn'), ('sparql', 'SPARQL'), ('spec', 'RPMSpec'), ('splus', 'S'), ('sql', 'SQL'), ('sqlite3', 'sqlite3con'), ('squidconf', 'SquidConf'), ('ssp', 'Scalate Server Page'), ('stan', 'Stan'), ('stata', 'Stata'), ('swift', 'Swift'), ('swig', 'SWIG'), ('systemverilog', 'systemverilog'), ('tads3', 'TADS 3'), ('tap', 'TAP'), ('tasm', 'TASM'), ('tcl', 'Tcl'), ('tcsh', 'Tcsh'), ('tcshcon', 'Tcsh Session'), ('tea', 'Tea'), ('termcap', 'Termcap'), ('terminfo', 'Terminfo'), ('terraform', 'Terraform'), ('tex', 'TeX'), ('text', 'Text only'), ('thrift', 'Thrift'), ('tid', 'tiddler'), ('tnt', 'Typographic Number Theory'), ('todotxt', 'Todotxt'), ('toml', 'TOML'), ('trac-wiki', 'MoinMoin/Trac Wiki markup'), ('treetop', 'Treetop'), ('ts', 'TypeScript'), ('tsql', 'Transact-SQL'), ('ttl', 'Tera Term macro'), ('turtle', 'Turtle'), ('twig', 'Twig'), ('typoscript', 'TypoScript'), ('typoscriptcssdata', 'TypoScriptCssData'), ('typoscripthtmldata', 'TypoScriptHtmlData'), ('ucode', 'ucode'), ('unicon', 'Unicon'), ('urbiscript', 'UrbiScript'), ('usd', 'USD'), ('vala', 'Vala'), ('vb.net', 'VB.net'), ('vbscript', 'VBScript'), ('vcl', 'VCL'), ('vclsnippets', 'VCLSnippets'), ('vctreestatus', 'VCTreeStatus'), ('velocity', 'Velocity'), ('verilog', 'verilog'), ('vgl', 'VGL'), ('vhdl', 'vhdl'), ('vim', 'VimL'), ('wdiff', 'WDiff'), ('webidl', 'Web IDL'), ('whiley', 'Whiley'), ('x10', 'X10'), ('xml', 'XML'), ('xml+cheetah', 'XML+Cheetah'), ('xml+django', 'XML+Django/Jinja'), ('xml+erb', 'XML+Ruby'), ('xml+evoque', 'XML+Evoque'), ('xml+lasso', 'XML+Lasso'), ('xml+mako', 'XML+Mako'), ('xml+myghty', 'XML+Myghty'), ('xml+php', 'XML+PHP'), ('xml+smarty', 'XML+Smarty'), ('xml+velocity', 'XML+Velocity'), ('xorg.conf', 'Xorg'), ('xquery', 'XQuery'), ('xslt', 'XSLT'), ('xtend', 'Xtend'), ('xul+mozpreproc', 'XUL+mozpreproc'), ('yaml', 'YAML'), ('yaml+jinja', 'YAML+Jinja'), ('yang', 'YANG'), ('zeek', 'Zeek'), ('zephir', 'Zephir'), ('zig', 'Zig')], default='python', max_length=100)), ('style', models.CharField(choices=[('abap', 'abap'), ('algol', 'algol'), ('algol_nu', 'algol_nu'), ('arduino', 'arduino'), ('autumn', 'autumn'), ('borland', 'borland'), ('bw', 'bw'), ('colorful', 'colorful'), ('default', 'default'), ('emacs', 'emacs'), ('friendly', 'friendly'), ('fruity', 'fruity'), ('igor', 'igor'), ('inkpot', 'inkpot'), ('lovelace', 'lovelace'), ('manni', 'manni'), ('monokai', 'monokai'), ('murphy', 'murphy'), ('native', 'native'), ('paraiso-dark', 'paraiso-dark'), ('paraiso-light', 'paraiso-light'), ('pastie', 'pastie'), ('perldoc', 'perldoc'), ('rainbow_dash', 'rainbow_dash'), ('rrt', 'rrt'), ('sas', 'sas'), ('solarized-dark', 'solarized-dark'), ('solarized-light', 'solarized-light'), ('stata', 'stata'), ('stata-dark', 'stata-dark'), ('stata-light', 'stata-light'), ('tango', 'tango'), ('trac', 'trac'), ('vim', 'vim'), ('vs', 'vs'), ('xcode', 'xcode')], default='friendly', max_length=100)), ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='snippets', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0006_auto_20200807_1323'), ] operations = [ migrations.CreateModel( name='Employee', fields=[ ('id', models.Field(primary_key=True, serialize=False)), ('name', models.CharField(max_length=120)), ('email', models.EmailField(max_length=254)), ], ), migrations.RemoveField( model_name='task', name='author', ), migrations.DeleteModel(name='Author', ), migrations.AddField( model_name='task', name='employee', field=models.ForeignKey( default='Author Name', on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='api.Employee'), ), ]
class Migration(migrations.Migration): dependencies = [ ('homepage', '0003_auto_20200113_1452'), ] operations = [ migrations.CreateModel( name='Notification', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=500, verbose_name='Tiêu đề')), ('note', models.CharField(help_text='VD: Học kỳ, ...', max_length=500, verbose_name='Ghi chú')), ('caption', models.TextField(blank=True, help_text='VD: Nhắc nhở, Thông tin thêm...', verbose_name='Nội dung')), ('thumb', models.ImageField(help_text='Hiển thị trên trang chủ', null=True, upload_to='', verbose_name='Thumb')), ('file', models.Field(blank=True, help_text='Văn bản', null=True, verbose_name='Tệp đính kèm')), ('submission_date', models.DateTimeField(default=datetime.datetime(2020, 1, 13, 16, 50, 44, 448375), editable=False)), ('edit', models.ImageField(blank=True, default='edit.png', null=True, upload_to='')), ], options={ 'verbose_name': 'Thông báo', 'verbose_name_plural': 'Thông báo', }, ), migrations.AlterField( model_name='scheduleweek', name='submission_date', field=models.DateTimeField(default=datetime.datetime(2020, 1, 13, 16, 50, 44, 447674), editable=False), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Voter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=200)), ('last_name', models.CharField(max_length=200)), ('birthdate', models.Field(verbose_name='birthdate')), ('address', models.CharField(max_length=200)), ('city', models.CharField(max_length=200)), ('state', models.CharField(max_length=200)), ('zipcode', models.CharField(max_length=7)), ('email', models.EmailField(max_length=254)), ('phone', models.IntegerField()), ], ), ]
class Post(models.Model): name = models.CharField(max_length=70) body = models.TextField() created_time = models.DateField(default=datetime.date.today) modified_time = models.DateField(default=datetime.date.today) # excerpt = models.CharField(max_length=200, blank=True) location = models.ForeignKey(Location, on_delete=models.CASCADE, default=DEFAULT_LOCATION_ID) tags = models.ManyToManyField(Tag, blank=True) author = models.ForeignKey(User, on_delete=models.CASCADE) address = models.CharField(max_length=200, blank=True) startDate = models.DateField(default=datetime.date.today) endDate = models.DateField(default=datetime.date.today) latitude = models.CharField(max_length=70, blank=True) longitude = models.CharField(max_length=70, blank=True) pic_url = models.URLField(max_length=200, blank=True) bedrooms = models.Field(max_length=200, blank=True) bathrooms = models.CharField(max_length=200, blank=True) def get_absolute_url(self): return reverse('single', kwargs={'pk': self.pk}) def __str__(self): return '%s' % self.name
class Post(models.Model): post_id = models.Field(primary_key=True) user_id = models.IntegerField() title = models.CharField(max_length=200) def __str__(self): return str(self.post_id)
class SubstanceProperty(models.Model): substance = models.ForeignKey(Substance, on_delete=models.CASCADE) value = models.Field() source = models.ForeignKey(Source, on_delete=models.SET_NULL, null=True) false_flag = models.BooleanField(default=False) class Meta: abstract = True
class Permission(models.Model): STATUS = (('sell', 'sell'), ('buy', 'buy'), ('all', 'all')) email = models.Field(blank=True) permission = models.CharField(blank=True, max_length=200, null=True, choices=STATUS) date_created = models.DateTimeField(auto_now_add=True, null=True)
class Migration(migrations.Migration): dependencies = [ ('app', '0044_auto_20200703_1309'), ] operations = [ migrations.AlterField( model_name='order', name='done', field=models.Field(choices=[('NOT COMPLETED', 'NOT COMPLETED'), ('COMPLETED', 'COMPLETED')], default='', max_length=50), ), migrations.AlterField( model_name='order', name='position', field=models.Field(choices=[('BUY', 'BUY'), ('SELL', 'SELL')], default='', max_length=50), ), ]