mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Remove client-side length validation in form inputs (#3911)
* Remove client-side length validation in form inputs - Let the server throw an error (so the user sees it) * Update instances of models.URLField to InvenTreeURLField
This commit is contained in:
		
							
								
								
									
										19
									
								
								InvenTree/company/migrations/0050_alter_company_website.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								InvenTree/company/migrations/0050_alter_company_website.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| # Generated by Django 3.2.16 on 2022-11-10 01:08 | ||||
|  | ||||
| import InvenTree.fields | ||||
| from django.db import migrations | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('company', '0049_company_metadata'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name='company', | ||||
|             name='website', | ||||
|             field=InvenTree.fields.InvenTreeURLField(blank=True, help_text='Company website URL', verbose_name='Website'), | ||||
|         ), | ||||
|     ] | ||||
| @@ -101,7 +101,7 @@ class Company(MetadataMixin, models.Model): | ||||
|         blank=True, | ||||
|     ) | ||||
|  | ||||
|     website = models.URLField( | ||||
|     website = InvenTreeURLField( | ||||
|         blank=True, | ||||
|         verbose_name=_('Website'), | ||||
|         help_text=_('Company website URL') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user