mirror of https://github.com/interlegis/sapl.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							35 lines
						
					
					
						
							1.0 KiB
						
					
					
				| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| 
 | |
| from django.db import models, migrations | |
| 
 | |
| 
 | |
| class Migration(migrations.Migration): | |
| 
 | |
|     dependencies = [ | |
|         ('norma', '0002_auto_20150729_1717'), | |
|     ] | |
| 
 | |
|     operations = [ | |
|         migrations.CreateModel( | |
|             name='AssuntoNormaRelationship', | |
|             fields=[ | |
|                 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), | |
|                 ('assunto', models.ForeignKey(to='norma.AssuntoNorma')), | |
|             ], | |
|         ), | |
|         migrations.RemoveField( | |
|             model_name='normajuridica', | |
|             name='assunto', | |
|         ), | |
|         migrations.AddField( | |
|             model_name='assuntonormarelationship', | |
|             name='norma', | |
|             field=models.ForeignKey(to='norma.NormaJuridica'), | |
|         ), | |
|         migrations.AddField( | |
|             model_name='normajuridica', | |
|             name='assuntos', | |
|             field=models.ManyToManyField(to='norma.AssuntoNorma', through='norma.AssuntoNormaRelationship'), | |
|         ), | |
|     ]
 | |
| 
 |