Skip to content

Commit

Permalink
null fields and warning for agency register
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Lind committed Aug 31, 2024
1 parent b981512 commit 76d4fe9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mysite/templates/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<a href="/">
<img src="{% static 'img/collab_hub_logo.png' %}" width="300" class="img-fluid flex-center">
</a>
<p>If you're a <b>product manager, designer, or a startup founder</b>, you can join the CollabHub to collaborate with other software, marketing or creative professionals and agenices by registering below.</p>
<p>If you are a software developer, agency or a freelancer, you can join the CollabHub to collaborate with other software, marketing or creative professionals and agenices by <a href="/partner">registering over here as a partner</a>.</p>
</div>

<h5 class="mt-3">Join the CollabHub</h5>
Expand Down
31 changes: 31 additions & 0 deletions punchlist/migrations/0007_auto_20240831_0013.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 3.2.25 on 2024-08-31 00:13

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('punchlist', '0006_auto_20240830_1914'),
]

operations = [
migrations.AddField(
model_name='developmentagency',
name='owner',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='product',
name='owner',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='punchlist',
name='product',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='punchlists', to='punchlist.product'),
),
]
5 changes: 3 additions & 2 deletions punchlist/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Product(models.Model):
prod_url = models.CharField(max_length=255,null=True, blank=True)
repository_url = models.CharField(max_length=255,null=True, blank=True)
product_uuid = models.UUIDField(unique=True,null=True, blank=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
owner = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
organization_uuid = models.UUIDField(null=True, blank=True) # Add this field for organization UUID
product_team = models.UUIDField(null=True, blank=True) # Add this field for product team UUID
start_date = models.DateTimeField(null=True, blank=True)
Expand Down Expand Up @@ -183,7 +183,7 @@ class Punchlist(models.Model):
labs_product_name = models.CharField(max_length=255, blank=True, null=True, help_text="Product Name from Buildly Insights API")
labs_product_id = models.CharField(max_length=255, blank=True, null=True, help_text="Product ID from Buildly Insights API")
labs_release_id = models.JSONField(max_length=255, blank=True, null=True, help_text="Release IDs from Buildly Insights API for Product")
product = models.ForeignKey(Product, on_delete=models.CASCADE, related_name='punchlists')
product = models.ForeignKey(Product, on_delete=models.CASCADE, related_name='punchlists', null=True, blank=True)
create_date = models.DateTimeField(null=True, blank=True)
edit_date = models.DateTimeField(null=True, blank=True)

Expand Down Expand Up @@ -405,6 +405,7 @@ class DevelopmentAgency(models.Model):
contact_email = models.EmailField()
contact_phone = models.CharField(max_length=20)
linkedin_url = models.URLField(null=True, blank=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
how_they_found_us = models.TextField()
logo = models.ImageField(upload_to='agency-logo', null=True, blank=True)

Expand Down

0 comments on commit 76d4fe9

Please sign in to comment.