Skip to content

Commit

Permalink
Reorganize contacts app like orgs app with views as a package
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Nov 28, 2024
1 parent 8f298ad commit b3106fc
Show file tree
Hide file tree
Showing 9 changed files with 3,409 additions and 2,023 deletions.
2,071 changes: 53 additions & 2,018 deletions temba/contacts/tests.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions temba/contacts/views/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .views import ContactCRUDL, ContactFieldCRUDL, ContactGroupCRUDL, ContactImportCRUDL # noqa
2 changes: 1 addition & 1 deletion temba/contacts/forms.py → temba/contacts/views/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from temba.utils import languages
from temba.utils.fields import InputWidget, SelectMultipleWidget, SelectWidget, TembaMultipleChoiceField

from .models import URN, Contact, ContactGroup, ContactURN
from ..models import URN, Contact, ContactGroup, ContactURN


class CreateContactForm(forms.ModelForm):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from temba import mailroom
from temba.utils.models.es import IDSliceQuerySet

from .models import Contact, ContactGroup, ContactGroupCount
from ..models import Contact, ContactGroup, ContactGroupCount

SEARCH_ALL_GROUPS = "g"
SEARCH_STATIC_GROUPS = "s"
Expand Down
1,982 changes: 1,982 additions & 0 deletions temba/contacts/views/tests.py

Large diffs are not rendered by default.

Loading

0 comments on commit b3106fc

Please sign in to comment.