Commit a483a340 authored by Ysabella Panghulan's avatar Ysabella Panghulan

fixed merge conflicts in main branch

parent 4c48db27
...@@ -17,14 +17,7 @@ class WidgetUser(models.Model): ...@@ -17,14 +17,7 @@ class WidgetUser(models.Model):
department = models.ForeignKey(Department, on_delete = models.CASCADE) department = models.ForeignKey(Department, on_delete = models.CASCADE)
def __str__(self): def __str__(self):
<<<<<<< HEAD
return self.last_name + ' ' + self.first_name return self.last_name + ' ' + self.first_name
def get_absolute_url(self): def get_absolute_url(self):
return reverse("dashboard:widgetuser-details", kwargs={"pk": self.pk}) return reverse("dashboard:widgetuser-details", kwargs={"pk": self.pk})
=======
return self.first_name + ' ' + self.last_name
def get_absolute_url(self):
return reverse("widgetusers:user-details", kwargs={"pk": self.pk})
>>>>>>> 50c48d9 (created dashboard.html, updated models.py, views.py, urls.py to account for new dashboard page)
...@@ -5,32 +5,24 @@ ...@@ -5,32 +5,24 @@
{% block title %}Widget v2{% endblock %} {% block title %}Widget v2{% endblock %}
{% block content %} {% block content %}
<h1>Welcome to Widget!</h1> <h1>Welcome to Widget!</h1>
<h2>Widget Users:</h2> <h2>Widget Users:</h2>
<ul> <ul>
{% for user in users %} {% for user in users %}
<li> <li>
<<<<<<< HEAD <a href="{{ user.get_absolute_url }}">{{ user.last_name }}, {{ user.first_name }}</a>
<a href = "{{ user.get_absolute_url }}">{{ user.last_name }}, {{ user.first_name }}</a>
=======
<a href = "{{ user.get_absoluteurl }}">{{ user.last_name }}, {{ user.first_name }}</a>
>>>>>>> 50c48d9 (created dashboard.html, updated models.py, views.py, urls.py to account for new dashboard page)
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<<<<<<< HEAD <a href="/dashboard/widgetusers/add">Add Widget User</a>
<a href = "/dashboard/widgetusers/add">Add Widget User</a>
=======
<a href = "../widgetusers/add">Add Widget User</a>
>>>>>>> 50c48d9 (created dashboard.html, updated models.py, views.py, urls.py to account for new dashboard page)
<div> <div>
<a href = "../announcements">Announcement Board</a> <a href="../announcements">Announcement Board</a>
<a href = "../forum">Forum</a> <a href="../forum">Forum</a>
<a href = "../assignments">Assignments</a> <a href="../assignments">Assignments</a>
<a href = "../calendar">Calendar</a> <a href="../calendar">Calendar</a>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
from django.urls import path from django.urls import path
<<<<<<< HEAD
from .views import dashboard, WidgetUserDetailView, WidgetUserCreateView, WidgetUserUpdateView from .views import dashboard, WidgetUserDetailView, WidgetUserCreateView, WidgetUserUpdateView
urlpatterns = [ urlpatterns = [
...@@ -8,12 +7,6 @@ urlpatterns = [ ...@@ -8,12 +7,6 @@ urlpatterns = [
path('widgetusers/<int:pk>/details', WidgetUserDetailView.as_view(), name = 'widgetuser-details'), path('widgetusers/<int:pk>/details', WidgetUserDetailView.as_view(), name = 'widgetuser-details'),
path('widgetusers/add', WidgetUserCreateView.as_view(), name = "widgetuser-add"), path('widgetusers/add', WidgetUserCreateView.as_view(), name = "widgetuser-add"),
path('widgetusers/<int:pk>/edit', WidgetUserUpdateView.as_view(), name = "widgetuser-edit"), path('widgetusers/<int:pk>/edit', WidgetUserUpdateView.as_view(), name = "widgetuser-edit"),
=======
from .views import dashboard
urlpatterns = [
path('', dashboard, name = 'dashboard'),
>>>>>>> 50c48d9 (created dashboard.html, updated models.py, views.py, urls.py to account for new dashboard page)
] ]
app_name = "dashboard" app_name = "dashboard"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment