Skip to content

Commit

Permalink
Adding Market Analisis
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Mendez Quintero committed Jun 29, 2023
1 parent 5880574 commit c9d1a86
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dashboard/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.contrib import admin
from .models import Empresa, Competencia
from .models import Empresa, Competencia, Mercado

admin.site.register(Empresa)
admin.site.register(Competencia)
admin.site.register(Mercado)

27 changes: 27 additions & 0 deletions dashboard/migrations/0008_mercado.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 4.2.2 on 2023-06-29 05:55

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("dashboard", "0007_alter_empresa_usuarios"),
]

operations = [
migrations.CreateModel(
name="Mercado",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("mercado", models.CharField(max_length=200)),
],
),
]
7 changes: 7 additions & 0 deletions dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ class Meta:

def __str__(self):
return f"{self.empresa.nombre} competidor: {self.competidor.nombre}"

#This model creates the market where companies can work
class Mercado(models.Model):
mercado = models.CharField(max_length=200)

def __str__(self):
return self.mercado

0 comments on commit c9d1a86

Please sign in to comment.