mirror of
				https://github.com/DerTyp7/tealcode-django-python.git
				synced 2025-10-31 13:17:07 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			410 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			410 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.db import models
 | |
| from django.utils import timezone
 | |
| 
 | |
| class Entry(models.Model):
 | |
|     ip = models.CharField(max_length=80)
 | |
|     email = models.EmailField(max_length=200)
 | |
|     subject = models.CharField(max_length=80)
 | |
|     message = models.TextField(max_length=4000)
 | |
|     date_created = models.DateTimeField(default=timezone.now)
 | |
| 
 | |
| 
 | |
|     def __str__(self):
 | |
|         return self.email + " - " + self.subject
 | |
| 
 | |
| 
 | 
