Skip to content

Commit

Permalink
minor changes to references of data import
Browse files Browse the repository at this point in the history
  • Loading branch information
bahron83 committed May 31, 2018
1 parent 225c213 commit 2521d5c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion koalixcrm/crm/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
from koalixcrm.crm.contact.customergroup import CustomerGroup, OptionCustomerGroup
from koalixcrm.crm.contact.customerbillingcycle import CustomerBillingCycle, OptionCustomerBillingCycle
from koalixcrm.crm.contact.person import Person
from koalixcrm.crm.contact.contact import CallForContact, OptionCall, OptionPerson, ContactImportData
from koalixcrm.crm.contact.contact import CallForContact, OptionCall, OptionPerson
from koalixcrm.crm.contact.data_import import ContactImportData
from koalixcrm.crm.forms import ImportDataContactForm

class ContactImportDataAdmin(admin.ModelAdmin):
Expand Down
4 changes: 4 additions & 0 deletions koalixcrm/crm/contact/data_import.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from django.db import models
from django.utils.translation import ugettext as _
from koalixcrm.crm.const.purpose import *

class ContactImportData(models.Model):
data_file = models.FileField(upload_to='data_files', max_length=255)

Expand Down
2 changes: 1 addition & 1 deletion koalixcrm/crm/management/commands/importcontactdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def format_phone_number(self, value):
res = str(value).replace(" ", "")
res = re.sub(r"^[a-zA-Z]+(\d+)$", r"\1", res)
res = re.sub(r"^(\d+)[a-zA-Z]+$", r"\1", res)
res = re.sub(r".0$", r"", res)
res = re.sub(r"\.0$", r"", res)
return res

def format_city_name(self, value):
Expand Down
2 changes: 1 addition & 1 deletion projectsettings/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def init_with_context(self, context):
css_classes=('collapse closed',),
models=('koalixcrm.crm.contact.contact.CallForContact',
'koalixcrm.crm.documents.visit.Visit',
'koalixcrm.crm.contact.contact.ContactImportData'),
'koalixcrm.crm.contact.data_import.ContactImportData'),
),
modules.ModelList(
_('Data Import'),
Expand Down

0 comments on commit 2521d5c

Please sign in to comment.