simplify example proposal models
This commit is contained in:
		
							parent
							
								
									2966f6534a
								
							
						
					
					
						commit
						cabae1394d
					
				
					 1 changed files with 1 additions and 15 deletions
				
			
		|  | @ -3,19 +3,6 @@ from django.db import models | ||||||
| from symposion.proposals.models import ProposalBase | from symposion.proposals.models import ProposalBase | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class ProposalCategory(models.Model): |  | ||||||
| 
 |  | ||||||
|     name = models.CharField(max_length=100) |  | ||||||
|     slug = models.SlugField() |  | ||||||
|      |  | ||||||
|     def __unicode__(self): |  | ||||||
|         return self.name |  | ||||||
|      |  | ||||||
|     class Meta: |  | ||||||
|         verbose_name = "proposal category" |  | ||||||
|         verbose_name_plural = "proposal categories" |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| class Proposal(ProposalBase): | class Proposal(ProposalBase): | ||||||
|      |      | ||||||
|     AUDIENCE_LEVEL_NOVICE = 1 |     AUDIENCE_LEVEL_NOVICE = 1 | ||||||
|  | @ -28,7 +15,6 @@ class Proposal(ProposalBase): | ||||||
|         (AUDIENCE_LEVEL_EXPERIENCED, "Experienced"), |         (AUDIENCE_LEVEL_EXPERIENCED, "Experienced"), | ||||||
|     ] |     ] | ||||||
|      |      | ||||||
|     category = models.ForeignKey(ProposalCategory) |  | ||||||
|     audience_level = models.IntegerField(choices=AUDIENCE_LEVELS) |     audience_level = models.IntegerField(choices=AUDIENCE_LEVELS) | ||||||
|      |      | ||||||
|     recording_release = models.BooleanField( |     recording_release = models.BooleanField( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Luke Hatcher
						Luke Hatcher