Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 19th, 2018 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. class nx_fmts(models.Model):
  2.     date = models.DateTimeField('exception date')
  3.     ip_client =  models.TextField()
  4.     server = models.TextField()
  5.     uri = models.TextField()
  6.     total_processed = models.IntegerField()
  7.     total_blocked = models.IntegerField()
  8.     couples = models.ManyToManyField(nx_couples)
  9.    
  10.     def __unicode__(self):
  11.         return self.date+self.ip_client+self.total_processed+self.total_blocked
  12.  
  13.     class Meta:
  14.         ordering = ('date','ip_client','uri',
  15.                     'total_processed', 'total_blocked')
  16.  
  17.    
  18. class nx_couples(models.Model):
  19.     zone_raw = models.CharField(max_length=50)
  20.     zone = models.CharField(max_length=50)
  21.     id = models.IntegerField()
  22.     var_name = models.TextField()
  23.     in_name = models.BooleanField()
  24.     in_file = models.BooleanField()
  25.     fmts = models.ManyToManyField(nx_fmts)
  26.    
  27.     def __unicode__(self):
  28.         return self.zone+self.id+self.var_name
  29.  
  30.     class Meta:
  31.         ordering = ('id','zone_raw','var_name')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top